Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Mindmaps breaking when exporting to pdf

A topic by Unbedecked created Mar 30, 2023 Views: 169 Replies: 4
Viewing posts 1 to 5

The Mindmap seems to totally ignore the ''Network'' category for me when exported.
Also, is there a plan to have the option to export in the colors used in the previewer?

That’s very strange, does it happen every time?

Can you share the code block?

It should definitely be using the same colors, so that may be a bug.

Sure! Apologize for the late reply, had to get home from the trip. Thanks again!
https://we.tl/t-zIhWi4aWgB

(2 edits) (+1)

Hmm. Might be a timing issue. Does that export issue always occur for you for this diagram?

Nevermind!

There are a couple of things going on here:

First, for PDF exports, I don’t have plans to use the dark theme for mermaid charts and other diagrams currently. The exported PDFs themselves are essentially light mode, so many of the color choices and contrast needs would not be correct on light backgrounds (if they were visible at all).

If you do need the dark-mode diagram itself for non-pdf reasons, you can right click it in the preview (in dark mode) and choose ‘Export SVG’

For the wrongly-connected-nodes issue, I believe it’s tied to this issue in mermaid: https://github.com/mermaid-js/mermaid/issues/4012. It doesn’t look like this has actually been fixed in the latest release for me.

I’ll see about getting a fix release out (when I have a fix), but you should be able to work around it for now by removing the line containing only spaces between the second and fourth line of the mindmap codeblock.

(+1)

Thanks a lot! It works!
I totally forgot to try the SVG option, It's what I needed!