Timothy J. Baek преди 10 месеца
родител
ревизия
24ef5af2a1
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/lib/components/chat/Messages/CodeBlock.svelte

+ 2 - 1
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -250,7 +250,8 @@ __builtins__.input = input`);
 			stderr ||
 			result) &&
 			'border-bottom-left-radius: 0px; border-bottom-right-radius: 0px;'}"><code
-			class="language-{lang} rounded-t-none whitespace-pre">{@html highlightedCode || code}</code
+			class="language-{lang} rounded-t-none whitespace-pre"
+			>{#if highlightedCode}{@html highlightedCode}{:else}{code}{/if}</code
 		></pre>
 
 	<div