mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 01:34:19 +01:00
Fix note text
This commit is contained in:
@@ -574,7 +574,7 @@ export const getData = () => {
|
||||
cnt++;
|
||||
const noteNode: Node = {
|
||||
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,
|
||||
shape: 'rect',
|
||||
padding: config.class!.padding ?? 6,
|
||||
|
||||
Reference in New Issue
Block a user