diff --git a/src/lib/components/chat/Messages/ContentRenderer.svelte b/src/lib/components/chat/Messages/ContentRenderer.svelte index d9e9c23525..2c5fccb8e4 100644 --- a/src/lib/components/chat/Messages/ContentRenderer.svelte +++ b/src/lib/components/chat/Messages/ContentRenderer.svelte @@ -13,7 +13,7 @@ showEmbeds } from '$lib/stores'; import FloatingButtons from '../ContentRenderer/FloatingButtons.svelte'; - import { createMessagesList } from '$lib/utils'; + import { createMessagesList, replaceOutsideCode } from '$lib/utils'; /** * Extracts all top-level
...
blocks from content, @@ -229,7 +229,8 @@ + segment.replace(/\s*(\[(?:\d+(?:#[^,\]\s]+)?(?:,\s*\d+(?:#[^,\]\s]+)?)*)\])+/g, '')) : content} {model} {save}