-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Markdown lists are not supported #6099
Comments
I downgraded mermaid to workaround this issue {
"dependencies": {
"mermaid": "^10",
}
} |
@KevinWang15 Nice catch. This bug is indeed a regression from Mermaid 10 to Mermaid 11.
Mermaid 11.0.0 ❌ |
getting 'Unsupported markdown: list' error in these charts related: - mermaid-js/mermaid#5824 - mermaid-js/mermaid#6099
@Timac I actually don't think this is a bug. The example you gave
is not using the correct syntax to invoke markdown on 10.x. There you need
and when I run that on our 10.x installation, I get the same unsupported error. And the reason you get that error on 11.x with your example, is that they are ALWAYS processing markdown now, whether you have special syntax or not. At least from my testing. I think in general, for both 10.x and 11.x, they do not support block level markdown, such as lists, blockquotes, etc. Only inline markdown, such as bold, italics, etc. Much like standard markdown tables, which also only support inline markdown. |
For the list item case, I found a workaround to restore the previous behaviour: put a -2["- [ ] do this first 🆔 abcdef"]:::TASK
+2["\- [ ] do this first 🆔 abcdef"]:::TASK See the diffs in context in this commit: And screenshots showing before-and-after here: |
Here is the bug issue opened by @ajuckel about processing labels as markdown even when not using their documented syntax. #6275. There are even a couple PRs to attempt to fix it. @pfych, as @claremacrae pointed out, with markdown you can escape characters that are part of markdown syntax by using a |
Description
Markdown lists are not supported in Mermaid diagrams. When using a Markdown list in a diagram, you will see the error
Unsupported markdown: list
Steps to reproduce
Example with '-'
Unsupported markdown: list
when the graph is rendered:Example with '*'
Unsupported markdown: list
when the graph is rendered:Setup
Workaround
A workaround is not to use characters like
•
or-
:is rendered as
is rendered as
The text was updated successfully, but these errors were encountered: