-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Co-authored-by: Sidharth Vinod <github@sidharth.dev>
🦋 Changeset detectedLatest commit: af6cf0e 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.88% 3.88% -0.01%
==========================================
Files 398 399 +1
Lines 42044 42089 +45
Branches 638 638
==========================================
Hits 1635 1635
- Misses 40409 40454 +45
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 ↗︎
|
📑 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:
.