Commit 6e6f9862 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 7d42a791
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import { marked } from 'marked'; import { marked } from 'marked';
import CodeBlock from './CodeBlock.svelte'; import CodeBlock from './CodeBlock.svelte';
import Image from '$lib/components/common/Image.svelte'; import Image from '$lib/components/common/Image.svelte';
import { stringify } from 'postcss';
export let token; export let token;
export let tokenIdx = 0; export let tokenIdx = 0;
...@@ -86,7 +85,11 @@ ...@@ -86,7 +85,11 @@
{:else if codes.length > 0 && part.startsWith('{{@CODE ')} {:else if codes.length > 0 && part.startsWith('{{@CODE ')}
{@const _code = codes[parseInt(part.match(/{{@CODE (\d+)}}/)[1])]} {@const _code = codes[parseInt(part.match(/{{@CODE (\d+)}}/)[1])]}
<div class="my-10 -mb-6"> <div class="my-10 -mb-6">
<CodeBlock id={`${id}-${tokenIdx}-${_code.id}`} lang={_code.lang} code={_code.code} /> <CodeBlock
id={`${id}-${tokenIdx}-${_code.id}`}
lang={_code.lang}
code={revertSanitizedResponseContent(_code.code)}
/>
</div> </div>
{/if} {/if}
{/each} {/each}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment