THIS FORUM IS DEPRECATED

It will be disabled at any point in the future. Please post your discussions to any of these alternative available channels:

* GitHub Discussions: https://github.com/Zettlr/Zettlr/discussions
* Zettlr Subreddit: https://www.reddit.com/r/Zettlr
* Discord: https://discord.gg/PcfS3DM9Xj

# mermaid PDF export

Hi,
I created a simple mermaid flowchart which displays nicely within zettlr. However, in the eported PDF the mermaid source code is shown, and no flowchart :-(
Anyone experiencing the same problem?
I use zettlr 1.7.5. on IOS.
your's
felix

• You'll need a Pandoc filter for Mermaid. Unfortunately, I don't use it and can't recommend anything specific.

• Thanks Hendrik,
I installed mermaid-filter

https://github.com/raghur/mermaid-filter

It uses puppeteer and and should do the trick.
(However, I have some problems on my computer with puppeteer, sigh … )

• @felixhelix said:
Thanks Hendrik,
I installed mermaid-filter

https://github.com/raghur/mermaid-filter

It uses puppeteer and and should do the trick.
(However, I have some problems on my computer with puppeteer, sigh … )

I have also had problem with puppeteer... I have finally installed the filter called pandoc-imagine. Using this filter with pandoc I have been able to generate an output image with the mermaid diagram.

• Hello,

I have the same problem and I couldn't find the solution when I'm reading the post in this topic.
May someone has some helping hands.
Why the editor can create the images and later the export doesn't working? Does this mean the needed software is installed and only the export command has to be edited? I'm getting the source code into the pdf and not the graphics .

I have this at this moment es export command

pandoc "$infile$" -f markdown $outflag$ $tpl$ $toc$ $tocdepth$ --bibliography "$bibliography$" $cslstyle$ $standalone$ --pdf-engine=xelatex --mathjax -o "$outfile$"

What I need to change here to get the graphics into my pdf export?