emersonbottero / vitepress-plugin-mermaid

Add mermaid support for Vitepress
MIT License
95 stars 22 forks source link

customize the width of generated graph #26

Closed xu4wang closed 1 year ago

xu4wang commented 1 year ago

Is it possible to set the width of the generated flow chart, or sequence diagram? For me the idea way is to just set the generated graph to be 100%.

xu4wang commented 1 year ago

Checking the generated svg, there is always a max-width property set for every generated graph.

Is there a way to set this max-width to 100% instead of calculated value?

image
emersonbottero commented 1 year ago

You should open an issue in mermaid since they are the ones computing the SVG