You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add markdown support to sequence diagram notes - #5705
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.
❌ Patch coverage is 12.73885% with 274 lines in your changes missing coverage. Please review.
✅ Project coverage is 5.26%. Comparing base (c5eb07c) to head (04732b9). ⚠️ Report is 4478 commits behind head on develop.
@sidharthv96 Hi there 👋
Not really sure how to follow up on this (and with whom). I think the only check failing is due to changed visuals, which I can not approve. Otherwise I think everything should be ready. Wdyt about the approach? I would really like to get markdown support in, so let me know if I should explore other ways instead.
Hi @schadenn,
There is some ongoing work to standardise rendering, which would cover markdown (basic stuff, not code highlights and all). This might also bring markdown support to all strings, which means we won't have to do special handling. The details are not yet confirmed, that's why we haven't reviewed this PR.
Also, HighlightJS is a big dependency, which increases the bundle size significantly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📑 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_VERSIONis used for all new features.developbranch