Skip to content
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

text "no" rendered as "n" #1571

Open
TheDutchCoder opened this issue Nov 8, 2024 · 1 comment
Open

text "no" rendered as "n" #1571

TheDutchCoder opened this issue Nov 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TheDutchCoder
Copy link

TheDutchCoder commented Nov 8, 2024

Describe the bug
A clear and concise description of what the bug is.

When adding a really simple "no" label to an arrow, it is rendered as "n"
It works fine when adding whitespace btw, just not without it.

To Reproduce
Link to Live Editor: https://mermaid.live/edit#pako:eNqVzsFugzAMBuBXiXwOKJRS2hyqreUNttOUi0dMQSIJCok2hnj3hUmTdp19-q3_k7xC6zSBhG50H22PPrDXRlmW5vlpZXOPE0mmBzTOas5GfKdRMgUNtcM8OKuAbVm20Jxl19u_nXWJ3XcGHAx5g4NOv6z7RUHoyZCCnWnqMI5BgbJbqmIM7mWxLcjgI3HwLj56kB2Oc0px0hioGfDh0fxWJrRvzv2NIFf4BHk4VXlZ1HV1FPX5Is5HDgvIi8hFkfZUH4qiFOXG4euHi7zavgHCfl-w

Expected behavior
A clear and concise description of what you expected to happen.
"no" to be rendered.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: MacOS 15.1
  • Browser Chrome
  • Version 130
@TheDutchCoder TheDutchCoder added the bug Something isn't working label Nov 8, 2024
@shutterfreak
Copy link

The '--o' string denotes a circular arrow marker, as in:

flowchart TD
  A --o B
  A -- no --o C
Loading

Per the Mermaid documentation, you must add a space between the edge label and the double hyphens, as in:

flowchart TD
    A@{ shape: diamond, label: "Decision" }--yes-->B
    A-- no -->C

When not adding those spaces, the parser gets confused. This is also documented in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants