mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Add handling for escape type
This commit is contained in:
parent
27f7b615cc
commit
8745daa701
@ -85,6 +85,8 @@ export function markdownToHTML(markdown: string, { markdownAutoWrap }: MermaidCo
|
|||||||
return '';
|
return '';
|
||||||
} else if (node.type === 'html') {
|
} else if (node.type === 'html') {
|
||||||
return `${node.text}`;
|
return `${node.text}`;
|
||||||
|
} else if (node.type === 'escape') {
|
||||||
|
return node.text;
|
||||||
}
|
}
|
||||||
return `Unsupported markdown: ${node.type}`;
|
return `Unsupported markdown: ${node.type}`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user