simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.02k stars 132 forks source link

Please add support for <div class='mermaid'> #157

Closed mcdon-ron closed 1 year ago

mcdon-ron commented 2 years ago

The <div class='mermaid'> is the default usage listed on Mermaid's site. It'd also be useful for scenarios where you have to add html within markdown, something like putting some mermaid graphs in an html table.

Thank you

simov commented 1 year ago

This is supported in v5.1, have a look at the updated documentation https://github.com/simov/markdown-viewer#mermaid Also note that your HTML tags have to be structured exactly as shown in the code example, so make sure you copy/paste that exactly as it is.