diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index bfcd273a8..4a5d7fb0d 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -341,6 +341,17 @@ generatingImage = false; }; + $: if (!edit) { + (async () => { + await tick(); + renderStyling(); + + await mermaid.run({ + querySelector: '.mermaid' + }); + })(); + } + onMount(async () => { await tick(); renderStyling();