diff --git a/packages/mermaid/src/rendering-util/handle-markdown-text.ts b/packages/mermaid/src/rendering-util/handle-markdown-text.ts index d623ebc268..6281752725 100644 --- a/packages/mermaid/src/rendering-util/handle-markdown-text.ts +++ b/packages/mermaid/src/rendering-util/handle-markdown-text.ts @@ -54,8 +54,6 @@ export function markdownToLines(markdown: string, config: MermaidConfig = {}): M node.tokens.forEach((contentNode) => { processNode(contentNode as MarkedToken, parentType); }); - } else { - lines[currentLine].push({ content: node.raw, type: parentType }); } }