Export mermaid visual in PDF

I really like the Mermaid integration, and was wondering if it is possible to include the preview rather than the code in a PDF export?

We are using a very basic button setup to export our wiki pages as PDF files, which works fine, but it wont grab the Preview of these mermaid blocks