-
-
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
feat: Return parsed config from mermaid.parse
#5831
Conversation
🦋 Changeset detectedLatest commit: d053284 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5831 +/- ##
=======================================
Coverage 5.00% 5.00%
=======================================
Files 338 337 -1
Lines 48216 48205 -11
Branches 551 576 +25
=======================================
Hits 2413 2413
+ Misses 45803 45792 -11
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 ↗︎
|
* develop: chore: Fix check feat: Preview release
commit: |
* develop: chore(deps): update dependency eslint-plugin-jsdoc to v50 chore: add git command and set safe dir Version Packages Adding changeset Cleanup of test-file Updated cypress test for self-loops Fix for issues with self loops rebuild docs add another maybe-undefined operator elk pass linter fix import make rendering-util/types a real ts file
Co-authored-by: Alois Klink <[email protected]>
* develop: [autofix.ci] apply automated fixes Create red-beans-cross.md remove tsconfig compiler option paths linting replace mermaid/dist with relative paths more , linting add test for out-of-tree tsc project replace with mermaid/dist
📑 Summary
This enables users to get the config that's defined in the frontmatter or directives when parsing a mermaid diagram.
📏 Design Decisions
We're returning the config along with diagramType.
Because we were returning an object, it's not a breaking change.
📋 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:
.