Add handling for escape type

This commit is contained in:
yari-dewalt 2024-08-28 10:53:15 -07:00
parent 27f7b615cc
commit 8745daa701

View File

@ -85,6 +85,8 @@ export function markdownToHTML(markdown: string, { markdownAutoWrap }: MermaidCo
return '';
} else if (node.type === 'html') {
return `${node.text}`;
} else if (node.type === 'escape') {
return node.text;
}
return `Unsupported markdown: ${node.type}`;
}