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.
![screen shot 2017-05-30 at 3 52 40 pm](https://cloud.githubusercontent.com/assets/13161779/26573402/397e682a-4550-11e7-98b5-0c5d9c4fefcf.png)
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.