Is it a specification that backticks for codeblocks are not supported in inline Markdown? #7586
Unanswered
akisatoon1
asked this question in
Q&A
Replies: 1 comment
-
|
Yes, this is by design. Mermaid's markdown support in labels is intentionally limited to inline formatting only, not block-level constructs. What is supported:
What is NOT supported:
This limitation comes from Mermaid rendering its own lightweight markdown subset (not full CommonMark). The intent is to keep diagram label parsing predictable across all diagram types. Workarounds for monospace text in labels:
Note: requires enabling
Tracking issue for broader markdown/code-span support: #6201 — upvoting there is the best signal to prioritize it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am experiencing the same issue as reported in mermaid-js/mermaid issue#6201.
In a comment in related other issue#6099, it was mentioned:
Regarding this, I have two questions:
Are codeblocks, like `text`, considered block-level?
Is the lack of support for certain Markdown elements a known specification?
I would appreciate it if you could clarify whether this behavior is by design or a current technical limitation.
Beta Was this translation helpful? Give feedback.
All reactions