Skip to content

Commit

Permalink
refactor: 知识块都改为markdown渲染 (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrickill authored Dec 16, 2024
1 parent c995bcc commit b493347
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/app/src/components/core/dataset/QuoteItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b493347

Please sign in to comment.