sphinxcontrib-mermaid icon indicating copy to clipboard operation
sphinxcontrib-mermaid copied to clipboard

PDF output?

Open saveman71 opened this issue 7 years ago • 1 comments

I was reading through the code as I'm currently writing a mermaid pandoc filter in python, for a LaTeX output, so ideally I need PDF output.

This code seems to have LaTeX support, however, I can't wrap my mind of the internal working of the process.

As I understand it all render_mm_latex does is requesting the 'pdf' format, to render_mm, which will just discard the option altogether and fall back to SVG output, so you'd end up with a file with a .pdf extension but with SVG content.

Then you use this file with an \includegraphics directive, but AFAIK LaTeX doesn't support SVG at all, so it won't work.

Am I missing something?

saveman71 avatar Mar 23 '17 22:03 saveman71

Hi, the latest version decides upon the filename which format to use. Before, render_mm_latex called render_mm with pdf argument. It hasn't been discarded - the warning was wrong.

br bastian

bastiedotorg avatar Nov 30 '17 09:11 bastiedotorg