Skip to content

Commit

Permalink
Add handling for ' characters in non-html text so they don't get sani…
Browse files Browse the repository at this point in the history
…tized into html code values
  • Loading branch information
yari-dewalt committed Oct 29, 2024
1 parent 8f0e0b9 commit c34fd15
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function markdownToLines(markdown: string, config: MermaidConfig = {}): M
lines.push([]);
}
textLine.split(' ').forEach((word) => {
word = word.replace(/'/g, `'`);
if (word) {
lines[currentLine].push({ content: word, type: parentType });
}
Expand Down

0 comments on commit c34fd15

Please sign in to comment.