-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Add markdown support to sequence diagram notes #5705
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5705 +/- ##
==========================================
+ Coverage 5.22% 5.26% +0.04%
==========================================
Files 322 323 +1
Lines 46201 46510 +309
Branches 561 537 -24
==========================================
+ Hits 2415 2451 +36
- Misses 43786 44059 +273
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
@sidharthv96 Hi there 👋 |
Hi @schadenn, Also, HighlightJS is a big dependency, which increases the bundle size significantly. |
@sidharthv96 Is there a tracking Issue or PR we can follow for this "bring markdown support to all strings"? I am interested in this feature! |
📑 Summary
This adds markdown support using Marked (including highlighting).
Took some inspiration from the other seemingly abandoned PRs.
Please review & let me know if the approach I took is fine 🙏
Resolves #1844 #4381 #4725 #5460
📏 Design Decisions
Instead of adding markdown syntax to the mermaid jison syntax definition (like the other PRs tried to do), I just added the option to use a
[
to open and]
to close a note. Inbetween the brackets, newlines are supported and the whole string will be fed into marked.🎨 Demo
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch