-
Notifications
You must be signed in to change notification settings - Fork 5k
markdown: support rendering Mermaid diagrams #6776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! The changes LGTM, I just need to pull down do a sanity check locally.
Codecov Report
@@ Coverage Diff @@
## main #6776 +/- ##
========================================
+ Coverage 8.79% 8.80% +0.01%
========================================
Files 97 97
Lines 13208 13208
========================================
+ Hits 1161 1163 +2
+ Misses 11885 11884 -1
+ Partials 162 161 -1 |
This feature looks so incredible I tried to find a way to use it for a few hours, but it didn't work for me. Can you please hint me on how to enable it, if it's disabled? I tried version 0.11, 0.12.10, 0.13-dev, but none of them seem to react to mermaid syntax like illustrated in the first comment in this thread:
|
Hey @albetech - I just did some quick tests against 0.13.0+dev and confirm that mermaid currently only works for markdown files (i.e. doesn't render for issue and its comments), also "Preview" would still display as code block, I had to save and see the rendered diagram. |
Co-authored-by: Joe Chen <jc@unknwon.io>
Trying to support mermaid issue #4229, #6630
I found that need to ranmake
notgo build
to took effect.make generate && make build
for build.Test the mermaid's diagrams were passed.
The renderings
