Add handling for ' characters in non-html text so they don't get sanitized into html code values

This commit is contained in:
yari-dewalt 2024-10-29 11:57:22 -07:00
parent 8f0e0b9c39
commit c34fd152d5

View File

@ -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 });
}