raghur / mermaid-filter

Pandoc filter for creating diagrams in mermaid syntax blocks in markdown docs
413 stars 74 forks source link

Need to install librsvg on Mac to use SVG format #108

Open phatmann opened 1 year ago

phatmann commented 1 year ago

On macOS if you run mermaid-filter with the MERMAID_FILTER_FORMAT environment variable set to "svg", you will get the error:

Could not convert image /path/to/image/file: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)

I ran brew install librsvg and that fixed the dependency issue. Either the dependencies need to be updated or the docs updated.

However, my converted diagrams have no text in them, so I perhaps I am missing a font. Any idea how to fix this?

kalankaboom commented 1 year ago

I had the same issue, but found the solution here (use format=pdf).