rushdown-diagram
rushdown-diagram is a diagram plugin for rushdown, a markdown parser. It allows you to easily embed diagrams in your markdown documents.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
Syntax
Currently, rushdown-diagram supports only mermaid diagrams and client-side rendering. You can use the following syntax to embed a mermaid diagram:
```mermaid
graph LR
```
Usage
Example
use Write;
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
```mermaid
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
```
"#;
match markdown_to_html
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka