Skip to content

Is there a way to prerender diagrams i wrote in md? #56

Answered by fralau
skorphil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @skorphil you are asking a perfectly legitimate question.

The essential answer is: in theory yes, that is a contradiction with the principle of a static website; but in practice, the javascript library works for all cases....

I know it's a little paradoxical, but in several cases, a dynamic diagram IS what is wanted (hyperlinks, dynamic effects depending on theme, etc.). if you pre-render a diagram as an image, it is static: it will look "dead".

Also:

  • A diagram grows organically; your page won't be responsive (resizable according to content and resolution) according to what your write in the diagram.
  • If you are using mdkocs-serve and your webbrowser as an instant visualizer, you are g…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fralau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
good first issue Good for newcomers useful tip Contains a useful tip to solve the issue mermaid-js This isssue relates to the mermaid javascript library
2 participants