Fix [ID:0] not converted to Fig. 1 (#16357)

This commit is contained in:
Wang Qi
2026-06-25 17:17:46 +08:00
committed by GitHub
parent ac9469e5f5
commit 31e50b164f
4 changed files with 4 additions and 4 deletions

View File

@@ -294,7 +294,7 @@ const FloatingChatWidgetMarkdown = ({
return (
<div className="floating-chat-widget" dir={dir}>
<Markdown
rehypePlugins={[rehypeWrapReference, rehypeKatex, rehypeRaw]}
rehypePlugins={[rehypeRaw, rehypeWrapReference, rehypeKatex]}
remarkPlugins={MarkdownRemarkPlugins}
className="text-sm leading-relaxed space-y-2 prose-sm max-w-full"
components={

View File

@@ -260,7 +260,7 @@ const MarkdownContent = ({
return (
<div dir={dir} className={styles.markdownContentWrapper}>
<Markdown
rehypePlugins={[rehypeWrapReference, rehypeKatex, rehypeRaw]}
rehypePlugins={[rehypeRaw, rehypeWrapReference, rehypeKatex]}
remarkPlugins={MarkdownRemarkPlugins}
components={
{

View File

@@ -357,7 +357,7 @@ function MarkdownContent({
return (
<div dir={dir} className={styles.markdownContentWrapper}>
<Markdown
rehypePlugins={[rehypeWrapReference, rehypeKatex, rehypeRaw]}
rehypePlugins={[rehypeRaw, rehypeWrapReference, rehypeKatex]}
remarkPlugins={MarkdownRemarkPlugins}
urlTransform={(url, key) => {
if (

View File

@@ -248,7 +248,7 @@ const MarkdownContent = ({
className="[&>section.think]:pl-[10px] [&>section.think]:text-[#8b8b8b] [&>section.think]:border-l-2 [&>section.think]:border-l-[#d5d3d3] [&>section.think]:mb-[10px] [&>section.think]:text-xs [&>blockquote]:pl-[10px] [&>blockquote]:border-l-4 [&>blockquote]:border-l-[#ccc] text-sm"
>
<Markdown
rehypePlugins={[rehypeWrapReference, rehypeKatex, rehypeRaw]}
rehypePlugins={[rehypeRaw, rehypeWrapReference, rehypeKatex]}
remarkPlugins={MarkdownRemarkPlugins}
components={
{