mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Add handling for ' characters in non-html text so they don't get sanitized into html code values
This commit is contained in:
parent
8f0e0b9c39
commit
c34fd152d5
@ -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 });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user