mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? fix: Fixed the issue of api markdown document display being messy #2346 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import HightLightMarkdown from '@/components/highlight-markdown';
|
||||
import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
|
||||
import apiDoc from '@parent/docs/references/http_api_reference.md';
|
||||
import MarkdownPreview from '@uiw/react-markdown-preview';
|
||||
import { Button, Card, Flex, Space } from 'antd';
|
||||
import ChatApiKeyModal from '../chat-api-key-modal';
|
||||
import EmbedModal from '../embed-modal';
|
||||
@ -41,7 +41,7 @@ const ApiContent = ({
|
||||
</Flex>
|
||||
</Card>
|
||||
)}
|
||||
<HightLightMarkdown>{apiDoc}</HightLightMarkdown>
|
||||
<MarkdownPreview source={apiDoc}></MarkdownPreview>
|
||||
</Flex>
|
||||
{apiKeyVisible && (
|
||||
<ChatApiKeyModal
|
||||
|
||||
Reference in New Issue
Block a user