-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
fix: Node and edge labels should only render as markdown if properly delimited #6345
base: develop
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 119daa3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6345 +/- ##
==========================================
- Coverage 3.86% 3.85% -0.01%
==========================================
Files 402 402
Lines 42682 42716 +34
Branches 644 644
==========================================
Hits 1648 1648
- Misses 41034 41068 +34
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
af6cf0e
to
119daa3
Compare
📑 Summary
Restores the behavior that only nodes and edges delimited with double-quote-backtick (e.g.
node["`_markdown_ **text**`"]
) are processed as markdown.Resolves #6275, #6048, and #5824
📏 Design Decisions
The implementation is based on #6087. First, I simply rebased on top of
develop
and resolved the conflicts as seemed appropriate to me.Intentional changes:
node.labelType !== 'string'
tonode.labelType === 'markdown'
.'markdown'
for nodes built from NodeMetaData, and added the capability to configure it via an additionallabelType
key.If this is a more acceptable fix for the linked issues, this would replace my alternate PR #6277.
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.