how to display a long string text for node? #5794
-
hi, im new to js and mmd. here is a html for a study: <html>
<body>
mmd view
<div id="mmd" class="mermaid">
graph LR
a-->b[12345678901234567890123]
c-->d[123456789012345678901234]
</div>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize();</script>
</body>
</html> it is found the text label for node how can i improve my html code to solve this? thanks very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @furyNerd, this is a known bug with the Firefox web browser, see #5785 and #5787 As a temporary work-around, you can set
Alternatively, you could try an older version of Mermaid, e.g. |
Beta Was this translation helpful? Give feedback.
Hi @furyNerd, this is a known bug with the Firefox web browser, see #5785 and #5787
As a temporary work-around, you can set
config.flowchart.htmlLabels: false
which works around this issue, e.g.See https://mermaid.live/edit#pako:eNp1jrkOwjAQRH8l2jqWuA8XVJSpoMQUi72JI_mIHFsIRfl3DElDwVSzqzfSG0B6RcCBMSac9K5uGy5ckVMb_5QaQ5zvT3S0psIHmZ4XNZqehPsOm4CdLqrLRCJjp8dtuVpvtrv94bj4afeJkZlR_5jNHUqwFCy2KrsNn4mAqMmSAJ6rohqTiQKEGzOKKfrry0ngMSQqIfjUaOBfwxJSpzDSucVsaefv-AYzDkqD
Alternatively, you could try an older version of Mermaid, e.g.
https://cdn.jsdelivr.net/npm/merm…