mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Fix [ID:0] not converted to Fig. 1 (#16357)
This commit is contained in:
@@ -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={
|
||||
|
||||
@@ -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={
|
||||
{
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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={
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user