mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 17:19:45 +02:00
Only process node labels as markdown if properly delimited
This commit is contained in:
@@ -42,7 +42,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let text;
|
let text;
|
||||||
if (node.labelType !== 'string') {
|
if (node.labelType === 'markdown') {
|
||||||
text = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig()), {
|
text = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig()), {
|
||||||
useHtmlLabels,
|
useHtmlLabels,
|
||||||
width: node.width || getConfig().flowchart?.wrappingWidth,
|
width: node.width || getConfig().flowchart?.wrappingWidth,
|
||||||
|
Reference in New Issue
Block a user