mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 02:04:08 +01:00
Fix note text
This commit is contained in:
@@ -574,7 +574,7 @@ export const getData = () => {
|
|||||||
cnt++;
|
cnt++;
|
||||||
const noteNode: Node = {
|
const noteNode: Node = {
|
||||||
id: note.id,
|
id: note.id,
|
||||||
label: note.text.replaceAll('\\n', '<br>'), // 'rect' shape label sanitizes these newlines so must change to <br> manually
|
label: note.text,
|
||||||
isGroup: false,
|
isGroup: false,
|
||||||
shape: 'rect',
|
shape: 'rect',
|
||||||
padding: config.class!.padding ?? 6,
|
padding: config.class!.padding ?? 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user