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

Issue with elk layout : rendered correctly in live editor but tricky to export #1582

Open
Sulray opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Sulray
Copy link

Sulray commented Nov 22, 2024

Describe the bug
ELK layout is correctly rendered in Mermaid Live Editor but not in different kind of exports:

  • The copy to clipboard
  • The PNG in a new tab
  • The SVG in a new tab
  • The Kroki in a new tab

For an unknwown reason, the only exports that seems to work are the PNG (that is not transparent so a bit useless) and the SVG downloads

To Reproduce
Link to Live Editor:
https://mermaid.live/edit#pako:eNp9kU9PgzAYh79K8ybcgKxltNCDiW5X40FPppcOuoFCu5QSnYTvbh06N-Lsoen7_Pr07wCFKRVwCIKh1rXjaBDQyIPpnQCOBKjmVUAowFWqVRMqpfVsHINA6G1j3opKWoee1gghoX2Hun6zs3JfoVUju-52gl_tYfOiCodRFEffYzKFSpd_qXdzNTlTl_-qq7manql0pp7OFd38bHQekGtBei2gl4HQEEKrbCvr0r_1IPTogeydeTzoArizvQrBmn5XAd_KpvNVvy-lU-ta-ku1J7qX-tmY31qVtTP2fvrD41ce5wAf4B14hBd5TDAjLEspXSQZYSEcPCd4Gec5IdkCkzRhS0zGED6OC5MYY0ZpxpI0ZYzifPwEybGinQ

Steps to reproduce the behavior:

  1. Go to 'Actions'
  2. Click on "Copy image to clipboard" or button to open PNG/SVG/Kroki in another tab
  3. See that the result do not use elk layout as rendered in Mermaid Live Editor

Expected behavior
Result with elk layout.

Screenshots
The result in Mermaid Live Editor and expected result of exports:
image

PNG in a new tab Result:
image

Desktop:

  • OS: Windows 11
  • Browser: chrome
  • Version of chrome: 131.0.6778.86

Additional context
Another thing which is weird is that when I click on my Mermaid Live Editor link, I have to reload one time the page to see the output.
It could be related to #1555 issue.

@Sulray Sulray added the bug Something isn't working label Nov 22, 2024
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

1 participant