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

Comments

Projects
None yet
1 participant
@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.

@rubensworks rubensworks added the feature label Jan 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment