Mermaid in asciidoc using the standard [mermaid] block
#106933
Replies: 8 comments 2 replies
-
|
Same here. Would be awesome if GH could support both syntax variants. |
Beta Was this translation helpful? Give feedback.
-
|
The standard in the AsciiDoc ecosystem for diagrams is the asciidoctor-diagram which provides for each diagram type a block as described above. The Due to that, the behavior GitHub shows here is very atypical to the AsciiDoc ecosystem. |
Beta Was this translation helpful? Give feedback.
-
|
Would like to see a change here also. I use asciidoc and right know I need to choose if I want to get mermaids properly rendered in the editor or on github which does simply not feel right. |
Beta Was this translation helpful? Give feedback.
-
|
That would definitely be awesome! |
Beta Was this translation helpful? Give feedback.
-
|
I experienced the same issue and came up with the following patch: which renders the image properly in InteliJ and GitHub. |
Beta Was this translation helpful? Give feedback.
-
|
I appreciate that seem to be a workaround, yet I think that GitHub has to align with the standard way to avoid this pitfall to many people. |
Beta Was this translation helpful? Give feedback.
-
|
This is necessary if we want to improve reviewer experience in GitHub. |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Hello 👋
This issue is related to asciidoctor/asciidoctor-intellij-plugin#1463.
In GitHub, if we want to read, in the online file viewer, an asciidoc file, we have to use the
[source, mermaid]block.However, in other popular tools (IntelliJ, GitLab…), the block to declare a diagram is just
[mermaid].Would it be possible to match the same as IntelliJ because we currently have to choose between rendering in the UI or in our IDEA, which is a bit painful 😅.
Thank you
Kevin
Beta Was this translation helpful? Give feedback.
All reactions