mermaid-filter
mermaid-filter copied to clipboard
Image quality enhance
The first one was generated by typora and the second was generator by mermaid-filter. Here are two iusses:
- The second image quality is much more poor than the first.
- typora provide automargins and the size of the image is proportionate.

I tried playing with the "width" option but I see no difference in docx output (quite pixelated).
quite possibly due to this - https://github.com/mermaidjs/mermaid.cli/issues/3
I've made a couple of pull requests to mermaid.cli in order to fix this (or at least allow for a viable workaround). Let's see how they go
Looks like the issue has been resolved on their end with a css fix... Would it be possible to implement it?
Ok, nevermind, found the solution!
For width to work, add a .mermaid.css in the current folder with this content:
#container > svg {
max-width: 100% !important;
}
A better solution to get vector would be either to use svg and find a way to get a boundingbox to the document or to use the pdf export of mermaid cli, and use a pdf import in latex.