Mermaid: Support for double arrow links?

Created on 12 Jan 2017  路  13Comments  路  Source: mermaid-js/mermaid

Something like A[first node] <--> B[second node]?

Does it already exist?

Development Approved Enhancement

Most helpful comment

Some work has been made for this issue. The grammar is done but the renderer is not complete and that will take a while. The problem is that the library we use for rendering flowcharts does not support this. So in order to complete this issue we will need to do all the rendering "in house" which is better in the long run. Till will also open up for more arrow types (see class diagrams).

This will be put into pause for that refactoring to start.

All 13 comments

No, it has been discussed though. Problem with the syntax is that <---> will be interpreted as a tag by the browser so something else is required. Look at issue #123.

Ah! Missed that one. Will close this off in favor of #123. Thanks!

Reopening this one as #123 refers to class diagrams where this is implemented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still interested in it, and it is still relevant, you can comment or remove the label to revive it.

I am still interested in this one. Is there any chance of this support being added?

Aren't all tags escaped already? I can write <xyz> pretty much everywhere in a sequence diagram and it gets represented as text, not as a tag. Does this encoding issue only apply to arrows?

Im a little confused on this one. In looking at the source it _looks_ like this is already defined. I am still going through the code to better understand exactly what is happening though, so I may be missing something

@jgreywolf As you can see in the issue, there's some work already done in the "grammar" side of it here: https://github.com/knsv/mermaid/commit/40d10ea7413145836d26a8a7b3420fe7905993f8

Note that this is currently assigned to @knsv. Safe to assume that this is being worked on already by him.

Yes, I was just looking at #123. But above there is a comment that this issue was re-opened because #123 was for Class diagrams, and not Flowcharts..

Some work has been made for this issue. The grammar is done but the renderer is not complete and that will take a while. The problem is that the library we use for rendering flowcharts does not support this. So in order to complete this issue we will need to do all the rendering "in house" which is better in the long run. Till will also open up for more arrow types (see class diagrams).

This will be put into pause for that refactoring to start.

Dear @knsv,

is this function complete?
A --> B
A <-- B
A <--> B

A --o B
A o-- B
A o--o B

A --x B
A x-- B
A x--x B

May I know when you release this features?
Do you need any help?

Regards.
Tom.

@vantoan8x support has been added to flowcharts for double arrow links (beta). See documentation

@jgreywolf It great, Thank you so much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

visualcurrent picture visualcurrent  路  3Comments

deftdawg picture deftdawg  路  3Comments

tokyo786 picture tokyo786  路  3Comments

pirDOL picture pirDOL  路  3Comments

erelling picture erelling  路  3Comments