mmdc by default will output vector graphics in svg format. In most cases, especially for PDFs, you usually want vector graphics instead of raster images. So, it'd make sense to support these vector graphics, and to use vector graphics over raster images by default.
A similar solution could be used here for the same issue in pandoc-plantuml-filter. On line 23 the output is specifically set to png when being used with latex (and if I understand this code correctly, by default too).
One other solution that I'm partial to, but isn't mentioned in the issue in pandoc-plantuml-filter, is an environment variable that's read. Something like MERMAID_FILETYPE:
MERMAID_FILETYPE=svg \
pandoc --from gfm --to html5 \
--filter pandoc-mermaid \
-o <name of output>.html <name of input>.md
mmdc
by default will output vector graphics insvg
format. In most cases, especially for PDFs, you usually want vector graphics instead of raster images. So, it'd make sense to support these vector graphics, and to use vector graphics over raster images by default.A similar solution could be used here for the same issue in pandoc-plantuml-filter. On line 23 the output is specifically set to png when being used with latex (and if I understand this code correctly, by default too).
One other solution that I'm partial to, but isn't mentioned in the issue in pandoc-plantuml-filter, is an environment variable that's read. Something like
MERMAID_FILETYPE
: