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
I mean that let landslide support it directly. We would have markdown, slide, math support, and diagram support, what a great thing.
In details, the mermaid codes can be written in the markdown files directly, and then landslide convert it into HTML files, so any browser can present the HTML files with diagrams easily.
Actually, I also figure out if the macro mechanism could be used to extend this functionality.
Basically, two steps are enough to achieve this goal.
First, add a mermaid.js code snippet into the <body> tag in final html file, see attached body-snippet.
Secondly, convert the mermaid code snippet in MD file into the corresponding HTML section. see attached mermaid-snippet.
---------mermaid-snippet-----------------
This is an example code in MD file
---
# Mermaid diagram
!mermaid or ```mermaid (just an identifier)
graph TD
A[Client] --> B[Load Balancer]
B --> C[Server01]
B --> D[Server02]
----- following the the corresponding code in final html file
<section>
Here is a mermaid diagram:
<div class="mermaid">
graph TD
A[Client] --> B[Load Balancer]
B --> C[Server01]
B --> D[Server02]
</div>
</section>
No description provided.
The text was updated successfully, but these errors were encountered: