Skip to content

Commit

Permalink
Fix exportTextFormat to keep dollar sign
Browse files Browse the repository at this point in the history
  • Loading branch information
2wheeh committed Dec 12, 2023
1 parent ee82c4f commit 4890613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lexical-markdown/src/MarkdownExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ function exportTextFormat(
}

// Replace trimmed version of textContent ensuring surrounding whitespace is not modified
return textContent.replace(frozenString, output);
return textContent.replace(frozenString, function () {
return output;
});
}

// Get next or previous text sibling a text node, including cases
Expand Down

0 comments on commit 4890613

Please sign in to comment.