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

2 or more arrows between 2 mermaid flowchart elements render incorrectly #4870

Closed
3 tasks done
ainsleymcgrath opened this issue Dec 1, 2021 · 2 comments
Closed
3 tasks done

Comments

@ainsleymcgrath
Copy link

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • Searched http://support.typora.io/


Describe the bug
In a mermaid flowchart multiple arrows going from one element to another do not render their labels properly.
i.e. If A has 2 labeled arrows pointing to B, the second of the 2 arrows will render incorrectly.

To Reproduce
Steps to reproduce the behavior:

  1. Open a blank document
  2. Paste this markdown
```mermaid
flowchart TD
  start((Lake));
  middle[Estuary];
  
  
  start -->|A river| middle;
  start -->|Another river| middle;
  start -->|A third river| middle;
  
  middle --> Ocean;
```

Expected behavior
A diagram that looks like this (via mermaid.live)
image

Screenshots / Screencasts
This is what gets rendered instead
image
Notice that the labels for the second and third arrows seem to stack up on top of one another in the top left corner.

Sample Markdown File
[see Expected Behavior section]

Desktop (please complete the following information):

  • OS: macOS Big Sur 11.6

Typora Version
1.0.2

Additional context
This may be related somewhat to #4851.

@abnerlee
Copy link
Contributor

abnerlee commented Dec 2, 2021

put into #1661

@abnerlee abnerlee closed this as completed Dec 2, 2021
@ainsleymcgrath
Copy link
Author

put into #1661

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants