From b58577b72db686ec73a6abc0c5763c71d26f2caa Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Fri, 26 Jul 2024 17:30:39 +0900 Subject: [PATCH] fix: use `` and `
` to format errors

Use the `` and `
` HTML elements to format mermaid errors,
instead just adding the error message as HTML.

Using `
` avoids the need for sanitizing any HTML (or using a
`monospace` font in CSS, since `
` does this automatically).

Using `` means that users using screenreaders should have a
better experience when using the mermaid live editor.

on-behalf-of: @Mermaid-Chart 
---
 src/lib/components/Editor.svelte | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte
index edae039f..f38604b0 100644
--- a/src/lib/components/Editor.svelte
+++ b/src/lib/components/Editor.svelte
@@ -139,10 +139,9 @@