Commit b4933471 by papapatrick Committed by GitHub

refactor: 知识块都改为markdown渲染 (#3389)

parent c995bcce
......@@ -10,6 +10,7 @@ import dynamic from 'next/dynamic';
import MyBox from '@fastgpt/web/components/common/MyBox';
import { SearchScoreTypeEnum, SearchScoreTypeMap } from '@fastgpt/global/core/dataset/constants';
import type { readCollectionSourceBody } from '@/pages/api/core/dataset/collection/read';
import Markdown from '@/components/Markdown';
const InputDataModal = dynamic(() => import('@/pages/dataset/detail/components/InputDataModal'));
......@@ -173,8 +174,8 @@ const QuoteItem = ({
</Flex>
<Box flex={'1 0 0'}>
<Box color={'black'}>{quoteItem.q}</Box>
<Box color={'myGray.600'}>{quoteItem.a}</Box>
<Markdown source={quoteItem.q} />
<Markdown source={quoteItem.a} />
</Box>
<Flex
......
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 sign in to comment