Skip to content

Commit

Permalink
Fixed emails not outputting in markdown html
Browse files Browse the repository at this point in the history
  • Loading branch information
wizbit committed Oct 8, 2024
1 parent 2d2c794 commit 7d7bb4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mermaid/src/rendering-util/handle-markdown-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ export function markdownToHTML(markdown: string, { markdownAutoWrap }: MermaidCo
return '';
} else if (node.type === 'html') {
return `${node.text}`;
} else if (node.type === 'link') {
return node.tokens?.map(output).join('') ?? node.text;
} else {
return `Unsupported markdown: ${node.type}`;
}
return `Unsupported markdown: ${node.type}`;
}

return nodes.map(output).join('');
Expand Down

0 comments on commit 7d7bb4f

Please sign in to comment.