Markdown text renders outside subgraph. #5318
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
If I add a significant amount of text to a Markdown string (
`"
) which functions as a subgraph's text content, it is not bound to the bounds of the subgraph.Steps to reproduce
https://develop.git.mermaid.live/edit#pako:eNqtV8mOGzcQ_RVCFyeCpIy8JPYgMGDEDmwgixEPkkM6wFDskpoZNtkh2ZLl5d_ziouWmTGQQ3wYS1yqXlW9ekV9nCjX0uRysjZupzrpo7h62djG2uWfzeT6J7m7biZ_ifn8ufj0vX7-WpOXXnX7TyI84mNhmfd-d5HCJ2GXWHp4d-nJ3aWnd5awOK42Xg6dCMsLdj-d_iKjdlYsp1PsxxdW0PtI3kojBiMVdc605IXNp3adVh1O6BCDiE601DsbopeRROxkFIY20pj9TEiTrGA9Xw1CehJyZYjvJQvCjTHolm-SWLnRtkG4tSiALhbitdvRlvwMbglnvJB2fzCst9X0V-FrETo3mrbYLV9WJBQcw4OnVij4X4_AtuA8IFIRCJsMyJMM8Lh2XoQR8cka7gGpDmLo9kGrkEwiYG2RgeBgBAhL8O2YgkPabjgQudJGxz0v4VKUKiKA9ht4GbzbcuDZJlItQ4AbaVUywPnICGZCR9GPQLBx8GPxNZBZL8Sr9wOpiLC0PXEzZTDTgze241LiSjwIQ4qg41i-1oLGjneGwWgKMzGQ7-QQhF6zd-wg3C0Zo-0GV-AmDCCGQMASqTO0lTaKvGRbhnGyDEAW7oxoS3wLZntjybaZ3Bdivph_gfkHrj46o-pFpuoVg2Z0h2ydRtM6NfbwDYoG5fWKwkK8OaUGX-sdMjuAZR7MqEYI6XM9l8XsU0Q951d6ja_ImPPcD4hy8Ck4rG1lyLU62Q0oGkjCBRM9eR2dQpdolSz-zRXV4BFKkZqjZKWxAv9OejTH_aLttdWpzRjgizF2Dhb3OQ9NfJvphBKeHwQMdj-aqHt0IvAHGmRqVvgAVM0NenTeRHZvS7Z_k_ZGXIhbzn9dr7UCyYrrUgbv0EalFp3edIT4ZIU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r_wL2aQaL31jilYUCqTtgy3LAo313F1b-jVQ8vpXRc0Jvo1ouj_m8B9St5wL-TGYTyF0vdYtfhR_5zddMwLWemsklPoJuN82ksZ9xDm8o925v1eQS3UWzyThwY7zUEgH2k8u1NIE-_wuYz0Ks
Screenshots
mjbvz/vscode-markdown-mermaid#243 (comment)
Code Sample
Setup
Mermaid version
I use https://github.com/mjbvz/vscode-markdown-mermaid/blob/bc6dfff7d69202b62be271f8a1bd34a7df9ab920/README.md#markdown-preview-mermaid-support:~:text=currently%20supports%20mermaid%20version%2010.8.0, which "Currently supports Mermaid version 10.8.0".
Browser and Version
code-insiders-1.87.0-1708582258.el8.src
and https://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/MozillaFirefox-122.0.1-1.1.x86_64.rpm
Suggested Solutions
Make the size of the subgraph correspond to the text size.
Additional Context
No response
The text was updated successfully, but these errors were encountered: