enh: automatic artifacts toggle

This commit is contained in:
Timothy J. Baek committed 2024-10-06 00:14:05 -07:00
1 parent 6d2eaaf602
commit aeaf761ecd
3 files changed
+16

No files matched your search

@@ -33,6 +33,11 @@
<MarkdownInlineTokens id={`${id}-${tokenIdx}-h`} tokens={token.tokens} />
</svelte:element>
{:else if token.type === 'code'}
{#if token.lang === 'html'}
{dispatch('code', {
lang: token.lang
})}
{/if}
{#if token.raw.includes('```')}
<CodeBlock
id={`${id}-${tokenIdx}`}