Skip to content

Conversation

ilovelinux
Copy link

πŸ“‘ Summary

Resolves #6974

πŸ“ Design Decisions

Replaced \n with <br>

πŸ“‹ Tasks

Make sure you

  • πŸ“– have read the contribution guidelines
  • ❌ πŸ’» have added necessary unit/e2e tests.
  • ❌ πŸ““ have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • ❌ πŸ¦‹ If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Copy link

changeset-bot bot commented Sep 22, 2025

⚠️ No Changeset found

Latest commit: b0394e7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Sep 22, 2025

βœ… Deploy Preview for mermaid-js ready!

Name Link
πŸ”¨ Latest commit b0394e7
πŸ” Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/68d122b2fc8aab000829b241
😎 Deploy Preview https://deploy-preview-6975--mermaid-js.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Sep 22, 2025
note "From Duck till Zebra"
Animal <|-- Duck
note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
note for Duck "can fly<br>can swim<br>can dive<br>can help in debugging"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may avoid relying on Markdown and use hardcoded new lines instead

Suggested change
note for Duck "can fly<br>can swim<br>can dive<br>can help in debugging"
note for Duck "can fly
can swim
can dive
can help in debugging"

Copy link

pkg-pr-new bot commented Sep 22, 2025

Open in StackBlitz

@mermaid-js/examples

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/examples@6975

mermaid

npm i https://pkg.pr.new/mermaid-js/mermaid@6975

@mermaid-js/layout-elk

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-elk@6975

@mermaid-js/layout-tidy-tree

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-tidy-tree@6975

@mermaid-js/mermaid-zenuml

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/mermaid-zenuml@6975

@mermaid-js/parser

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/parser@6975

@mermaid-js/tiny

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/tiny@6975

commit: b0394e7

Copy link

codecov bot commented Sep 22, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@37e3a69). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             develop   #6975   +/-   ##
=========================================
  Coverage           ?   3.57%           
=========================================
  Files              ?     473           
  Lines              ?   47139           
  Branches           ?     730           
=========================================
  Hits               ?    1687           
  Misses             ?   45452           
  Partials           ?       0           
Flag Coverage Ξ”
unit 3.57% <ΓΈ> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class diagrams example newline is broken
1 participant