Only process node labels as markdown if properly delimited

This commit is contained in:
Anthony Juckel
2025-03-02 18:45:29 -06:00
parent 0943edc114
commit 560abf4218

View File

@@ -42,7 +42,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
}
let text;
if (node.labelType !== 'string') {
if (node.labelType === 'markdown') {
text = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig()), {
useHtmlLabels,
width: node.width || getConfig().flowchart?.wrappingWidth,