Timothy Jaeryang Baek 2 月之前
父節點
當前提交
99b50b39fe

+ 1 - 4
src/lib/components/chat/Messages/Markdown.svelte

@@ -33,10 +33,7 @@
 	$: (async () => {
 		if (content) {
 			tokens = marked.lexer(
-				replaceTokens(processResponseContent(content), sourceIds, model?.name, $user?.name),
-				{
-					gfm: true
-				}
+				replaceTokens(processResponseContent(content), sourceIds, model?.name, $user?.name)
 			);
 		}
 	})();

+ 0 - 5
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte

@@ -238,11 +238,6 @@
 				{/each}
 			</ul>
 		{/if}
-	{:else if token.type === 'list_item'}
-		{JSON.stringify(token)}
-		<p>
-			<MarkdownInlineTokens id={`${id}-${tokenIdx}-li`} tokens={token.tokens} {onSourceClick} />
-		</p>
 	{:else if token.type === 'details'}
 		<Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1">
 			<div class=" mb-1.5" slot="content">