sphinxcontrib-mermaid
sphinxcontrib-mermaid copied to clipboard
PDF output?
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?
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