You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/x/docs/x-markdown/components.en-US.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,9 +152,9 @@ Incorrect Output:
152
152
</think>
153
153
```
154
154
155
-
**Root Cause:** According to [CommonMark](https://spec.commonmark.org/0.30/#html-blocks) specification, HTML block recognition depends on strict formatting rules. Once two consecutive line breaks (i.e., empty lines) appear inside an HTML block and do not meet specific HTML block type continuation conditions (such as <div>, <pre>, etc.), the parser will terminate the current HTML block and process subsequent content as Markdown paragraphs.
155
+
**Root Cause:** According to [CommonMark](https://spec.commonmark.org/0.30/#html-blocks) specification, HTML block recognition depends on strict formatting rules. Once two consecutive line breaks (i.e., empty lines) appear inside an HTML block and do not meet specific HTML block type continuation conditions (such as `<div>`, `<pre>`, etc.), the parser will terminate the current HTML block and process subsequent content as Markdown paragraphs.
156
156
157
-
Custom tags (like <think>) are typically not recognized as "paragraph-spanning" HTML block types, making them highly susceptible to empty line interference.
157
+
Custom tags (like `<think>`) are typically not recognized as "paragraph-spanning" HTML block types, making them highly susceptible to empty line interference.
**根本原因:** 根据 [CommonMark](https://spec.commonmark.org/0.30/#html-blocks) 规范,HTML 块的识别依赖于严格的格式规则。一旦在 HTML 块内部出现两个连续换行(即空行),且未满足特定 HTML 块类型(如 <div>、<pre> 等)的延续条件,解析器会终止当前 HTML 块,并将后续内容作为 Markdown 段落处理。
155
+
**根本原因:** 根据 [CommonMark](https://spec.commonmark.org/0.30/#html-blocks) 规范,HTML 块的识别依赖于严格的格式规则。一旦在 HTML 块内部出现两个连续换行(即空行),且未满足特定 HTML 块类型(如 `<div>`、`<pre>` 等)的延续条件,解析器会终止当前 HTML 块,并将后续内容作为 Markdown 段落处理。
156
156
157
-
自定义标签(如 <think>)通常不被识别为“可跨段落”的 HTML 块类型,因此极易受空行干扰。
157
+
自定义标签(如 `<think>`)通常不被识别为“可跨段落”的 HTML 块类型,因此极易受空行干扰。
Copy file name to clipboardExpand all lines: packages/x/docs/x-markdown/demo/streaming/format.tsx
+50-30Lines changed: 50 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -11,26 +11,30 @@ const demos = [
11
11
12
12
Ant Design X is a comprehensive toolkit for AI applications, integrating a UI component library, streaming Markdown rendering engine, and AI SDK.
13
13
14
-
\`npm install @ant-design/x-markdown\`
14
+
- \`npm install @ant-design/x\`
15
+
- \`npm install @ant-design/x-markdown\`
16
+
- \`npm install @ant-design/x-sdk\`
15
17
16
-
### @ant-design/x
18
+
### \`@ant-design/x\`
17
19
18
20
A React UI library based on the Ant Design system, designed for **AI-driven interfaces**. [Click here for details.](/components/introduce/).
19
21
20
-
### @ant-design/x-markdown
22
+
### \`@ant-design/x-markdown\`
21
23
22
24
An optimized Markdown rendering solution for **streaming content**. [Click here for details.](/x-markdowns/introduce).
23
25
24
-
### @ant-design/x-sdk
26
+
### \`@ant-design/x-sdk\`
25
27
26
28
Provides a complete set of **tool APIs**. [Click here for details.](/x-sdks/introduce).
27
-
<welcome data-icon="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*s5sNRo5LjfQAAAAAAAAAAAAADgCCAQ/fmt.webp" title="Hello, I'm Ant Design X" data-description="Base on Ant Design, AGI product interface solution, create a better intelligent vision~"></welcome>
29
+
28
30
29
31
| Repo | Description |
30
32
| ------ | ----------- |
31
33
| @ant-design/x | A React UI library based on the Ant Design system. |
32
34
| @ant-design/x-markdown | An optimized Markdown rendering solution for **streaming content**. |
33
35
| @ant-design/x-sdk | Provides a complete set of **tool APIs**. |
36
+
37
+
<welcome data-icon="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*s5sNRo5LjfQAAAAAAAAAAAAADgCCAQ/fmt.webp" title="Hello, I'm Ant Design X" data-description="Base on Ant Design, AGI product interface solution, create a better intelligent vision~"></welcome>
34
38
`,
35
39
},
36
40
{
@@ -62,7 +66,7 @@ Provides a complete set of **tool APIs**. [Click here for details.](/x-sdks/intr
62
66
},
63
67
{
64
68
title: 'InlineCode',
65
-
content: 'This is inline code: `npm install @ant-design/x-markdown`',
69
+
content: 'This is inline code: `npm install @ant-design/x-markdown`.',
0 commit comments