+ This is + + inline link. +
+ + ++ +
+
+
+
## APIs
| Property | Type | Description |
diff --git a/src/Markdown/index.tsx b/src/Markdown/index.tsx
index 05dfb552..7088178e 100644
--- a/src/Markdown/index.tsx
+++ b/src/Markdown/index.tsx
@@ -1,6 +1,6 @@
import { Collapse, Divider, Typography } from 'antd';
import { CSSProperties, memo } from 'react';
-import ReactMarkdown from 'react-markdown';
+import ReactMarkdown, { Components } from 'react-markdown';
import rehypeKatex from 'rehype-katex';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
@@ -20,6 +20,7 @@ export interface MarkdownProps {
style?: CSSProperties;
rehypePlugins?: PluggableList;
remarkPlugins?: PluggableList;
+ components?: Components;
}
const MemoHr = memo((props) => (
@@ -27,7 +28,11 @@ const MemoHr = memo((props) => (
));
const MemoDetails = memo((props) =>
+
+
## APIs
| 属性名 | 类型 | 描述 |
diff --git a/tests/__snapshots__/demo.test.tsx.snap b/tests/__snapshots__/demo.test.tsx.snap
index 7dec2564..7da68a4c 100644
--- a/tests/__snapshots__/demo.test.tsx.snap
+++ b/tests/__snapshots__/demo.test.tsx.snap
@@ -19029,6 +19029,199 @@ import { useDropNodeOnCanvas } from './useDropNodeOnCanvas';
`;
+exports[`+ This is + + inline link. +
+ + ++ +
+