You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is great to have markup support in the documentation. There are more and more places where markup files with inline Mermaid diagrams can be rendered directly. Is this something possible to support?
If the generation of markup to HTML can be configured then there is a way (without any server side involvement) to get browsers to render the diagram from the digram code:
<!DOCTYPE html>
<html lang="en">
<body>
<pre class="mermaid">
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
</pre>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
</script>
</body>
</html>
And just for the fun of it, here is the diagram rendered by GitHub itself:
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
Loading
The text was updated successfully, but these errors were encountered:
zippocage
changed the title
Support for rendering mermaid diagrams in markup files?
Feature request: mermaid diagram rendering in markup files
Jul 3, 2023
It is great to have markup support in the documentation. There are more and more places where markup files with inline Mermaid diagrams can be rendered directly. Is this something possible to support?
This is how Github handles mermaid inline in markdown files:
https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/#how-it-works
If the generation of markup to HTML can be configured then there is a way (without any server side involvement) to get browsers to render the diagram from the digram code:
And just for the fun of it, here is the diagram rendered by GitHub itself:
The text was updated successfully, but these errors were encountered: