Skip to content

Commit

Permalink
Fix codeblock text parsing (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid authored Dec 12, 2024
1 parent 2581f3a commit 8b6414e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parseExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function parseTreeToTextAndRanges(tree: StackItem): [string, MarkdownRange[]] {
text += '\n';
} else if (node.tag.startsWith('<pre')) {
appendSyntax('```');
const content = node.children.join('').replaceAll('&#32;', ' ');
const content = node.children.join('');
addChildrenWithStyle(content, 'pre');
appendSyntax('```');
} else if (node.tag.startsWith('<a href="')) {
Expand Down

0 comments on commit 8b6414e

Please sign in to comment.