From 31546b08ff11c694fe70ae26a84b04f062497f4e Mon Sep 17 00:00:00 2001 From: yari-dewalt Date: Wed, 18 Sep 2024 13:20:47 -0700 Subject: [PATCH] Fix note text --- packages/mermaid/src/diagrams/class/classDb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/class/classDb.ts b/packages/mermaid/src/diagrams/class/classDb.ts index 878ae102f..0d31f45cd 100644 --- a/packages/mermaid/src/diagrams/class/classDb.ts +++ b/packages/mermaid/src/diagrams/class/classDb.ts @@ -574,7 +574,7 @@ export const getData = () => { cnt++; const noteNode: Node = { id: note.id, - label: note.text.replaceAll('\\n', '
'), // 'rect' shape label sanitizes these newlines so must change to
manually + label: note.text, isGroup: false, shape: 'rect', padding: config.class!.padding ?? 6,