Cannot use # for comments in mermaid gantt 10.9.1

Operating system

Windows

Joplin version

3.0.12

Sync target

Joplin Cloud

Editor

Markdown Editor

What issue do you have?

I upgraded my Joplin desktop app from 2.14.19 to 3.0.12 and all my gantt charts were getting errors. I found that mermaid version 10.9.1 does not support comments using # symbol. Therefore all my previous charts were producing syntax errors. The previous mermaid version I had was 10.6.1.

I think my problem can be fixed with either of the following methods.

  1. Let mermaid 10.9.1 use # for comments.
  2. Rollback the mermaid version in Joplin 3.0.12
  3. Rollback Joplin version to 2.14.x assuming the mermaid version will rollback as well.

I tried option 3, but I was unable to install 2.14.22 due to the following fatal error in the screenshot.
If there are any other quick fix options I would be most obliged.

Screenshots

It looks like %% is the only officially documented way to add comments in mermaid. From Flowcharts Syntax | Mermaid :

Comments need to be on their own line, and must be prefaced with %% (double percent signs).

It's some effort, but I guess the most future-proof solution would be to rename your comments.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.