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

Flowchart arrowless edges stopped working in v11 #5813

Open
alnvdl-work opened this issue Sep 2, 2024 · 1 comment · May be fixed by #6043
Open

Flowchart arrowless edges stopped working in v11 #5813

alnvdl-work opened this issue Sep 2, 2024 · 1 comment · May be fixed by #6043
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@alnvdl-work
Copy link

Description

The following produces a diagram with no arrows from a to b.

flowchart TD
    a -- edge --- b

For example, as of the reporting of this bug, GitHub still uses an older version of Mermaid that seems to render no arrows:

flowchart TD
    a -- edge --- b
Loading

In v11, there's an arrow from a to b. Example: https://mermaid.live/edit#pako:eNolyksKAyEQBNCrSK3HC7ieGyRLNx1tdcBPMC0hDHP3dEhtqgreiTAiwyHV8Q6Fppj77rvRkLHWcMysbc0DGxrPRkdUff6IhxRu7OF0Rk60qnj4fimlJeP26QFO5uINc6xc4BLVl771jCS8H5QntT-5vqJxLPo

The documentation seems to imply there's still support for an "open link", whose example now looks exactly like "link with arrow head": https://mermaid.js.org/syntax/flowchart.html#links-between-nodes

As a side note (and perhaps a separate bug?): the curve property seems to have no effect when using the elk layout.

Steps to reproduce

Render the following diagram with v10 and v11 and compare the results:

flowchart TD
    a -- edge --- b

Screenshots

No response

Code Sample

flowchart TD
    a -- edge --- b

Setup

  • Mermaid version: v10 and v11
  • Browser and Version: any

Suggested Solutions

No response

Additional Context

No response

@alnvdl-work alnvdl-work added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 2, 2024
@alnvdl-work alnvdl-work changed the title Arrowless edges stopped working in v11 Flowchart arrowless edges stopped working in v11 Sep 2, 2024
@Rhys-T
Copy link

Rhys-T commented Sep 14, 2024

Seems like GitHub has updated its copy of Mermaid - it's now showing the incorrect arrow heads too.

flowchart TD
a -- edge --- b
Loading

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

Successfully merging a pull request may close this issue.

2 participants