Open dufipl opened 2 years ago
It is a regression from the released version. When preview mode is chosen on the mermaid toolbar the result is even worse:
The issue persists on the ghw/411-version-3530-bump
branch
Intersting, I would assume that this could be in the mermaid plugin itself that it got broken by some upstream changes along the way. Requires further investigation.
I checked this and the reason for not displaying the diagram properly on edit
is that the dom element, where the diagram should be rendered, is not visible at the time of rendering. This is because we load editor before the edit
button is clicked, i.e. when the user clicks the three-dots button:
At this time the element where we want to render the diagram is not visible as the editor itself is also not visible until (and if) the user clicks edit
button.
There are at least two solutions for this issue:
edit
button is clicked (github-writer repository), not earlier.
I recommend the second one. So to fix the original issue I will change the ckeditor5-mermaid package and after releasing the new version I will update it in this project.
It is a regression from the released version. When preview mode is chosen on the mermaid toolbar the result is even worse:
Regarding this even worse issue, it is caused by the new version of mermaid package (starting from 9.1.7). However, it will be also fixed with the solution I described above.
📝 Provide detailed reproduction steps (if any)
ghw/epic/367-version-3510-bump
branch✔️ Expected result
❌ Actual result
On the released version (from the Chrome store) it looks better but still not too good:
If you'd like to see this fixed sooner, add a 👍 reaction to this post.