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 diagrams in the following formats:
- MermaidJS
- client-side rendering
- PlantUML
- server-side rendering (requires a
plantumlcommand)
- server-side rendering (requires a
You can use the following syntax to embed diagrams:
```mermaid
graph LR
```
```plantuml
@startuml
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