mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 18:26:39 +02:00
Add handling for ' characters in non-html text so they don't get sanitized into html code values
This commit is contained in:
@@ -39,6 +39,7 @@ export function markdownToLines(markdown: string, config: MermaidConfig = {}): M
|
|||||||
lines.push([]);
|
lines.push([]);
|
||||||
}
|
}
|
||||||
textLine.split(' ').forEach((word) => {
|
textLine.split(' ').forEach((word) => {
|
||||||
|
word = word.replace(/'/g, `'`);
|
||||||
if (word) {
|
if (word) {
|
||||||
lines[currentLine].push({ content: word, type: parentType });
|
lines[currentLine].push({ content: word, type: parentType });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user