-
-
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/3208 backwards arrow direction #4019
base: develop
Are you sure you want to change the base?
Conversation
Not sure these are a ton better, but some other options:
|
Any news on this? |
Since |
@brvv What is the status on this? |
The implementation is very neat :) |
@sidharthv96 technically syntax is ok (speaking in terms of regexp and grammar), but I am not sure about its readability |
Seems we need to revive this one |
But this Syntax graph LR
A <--- B
so I think this intuitive Syntax is free to be re-purposed for a backward-pointing Link. |
That would have been wonderful, but the <pre class="mermaid">
graph
A <-- B
</pre> |
Is that a valid use-case? When embedding Text in (X)HTML not only the < has to be escaped using & lt; , but also at least > and & itself using & amp; |
As a side point, you can also reverse the order the nodes appear in. B -- edge --> A, vs A <-- edge -- B |
📑 Summary
Add backward arrows to flowchart
Resolves #3208
This pr is not ready to merge yet, and I wanted to confirm the syntax/direction with the maintainers before I add documentation and e2e tests
📏 Design Decisions
For backward arrow syntax, I've decided to go with a separator
\
that marks a link as being reversed:I chose this syntax because using
<--
creates an inconsistency with the existing double arrow syntax. For example,If backward arrow is implemented as
<--
, from a user's perspective, in cases likeA2 <-- B2 --> C2
, I would expect it to create three nodes, similar toA1 --> B1 --> C1
. I've provided more details about this in the #3208, fell free to check it out!Is the syntax that I chose ok for this issue? Alternatively, I can try to keep the
<--
syntax, and prioritize the existing behaviour when possible for backward compatibility. For example,Thanks!
📋 Tasks
Make sure you
develop
branch