Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mermaid code blocks #16

Open
rubensworks opened this issue Jan 21, 2019 · 0 comments
Open

Add support for mermaid code blocks #16

rubensworks opened this issue Jan 21, 2019 · 0 comments
Labels

Comments

@rubensworks
Copy link
Owner

rubensworks commented Jan 21, 2019

With mermaid, you can generate (SVG) diagrams and flowcharts via Markdown code blocks.

We should make it possible to do to something like the following:

 ```svg
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
```

One caveat: this library is JavaScript-based, and generates figures client-side.
What we would want is a way to generate SVG images when our article is being compiled, so that no additional JS is needed client-side.
We may be able to achieve this in a similar way as SsKaTeX does server-side KaTeX by running JS internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant