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/examples.en-US.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,22 +31,22 @@ Used for rendering streaming Markdown format returned by LLMs.
31
31
| children | Markdown content, alias for `content` property |`string`| - |
32
32
| components | Custom React components to replace HTML elements |`Record<string, React.ComponentType<ComponentProps> \| keyof JSX.IntrinsicElements>`, see [details](/x-markdowns/components)| - |
33
33
| paragraphTag | Custom HTML tag for paragraph elements. Prevents validation errors when custom components contain block-level elements |`keyof JSX.IntrinsicElements`|`'p'`|
34
-
| streaming | Configuration for streaming rendering behavior |`SteamingOption`, see [details](/x-markdowns/streaming)| - |
34
+
| streaming | Configuration for streaming rendering behavior |`StreamingOption`, see [syntax processing](/x-markdowns/streaming-syntax) and [animation effects](/x-markdowns/streaming-animation)| - |
35
35
| config | Marked.js configuration for Markdown parsing and extensions |[`MarkedExtension`](https://marked.js.org/using_advanced#options)|`{ gfm: true }`|
36
36
| openLinksInNewTab | Whether to add `target="_blank"` to all anchor tags |`boolean`|`false`|
37
37
| dompurifyConfig | DOMPurify configuration for HTML sanitization and XSS protection |[`DOMPurify.Config`](https://github.com/cure53/DOMPurify#can-i-configure-dompurify)| - |
38
38
| className | Additional CSS class name for the root container |`string`| - |
39
39
| rootClassName | Alias for `className`, additional CSS class for the root element |`string`| - |
40
40
| style | Inline styles for the root container |`CSSProperties`| - |
41
41
42
-
### SteamingOption
42
+
### StreamingOption
43
43
44
44
| Property | Description | Type | Default |
45
45
| --- | --- | --- | --- |
46
46
| hasNextChunk | Indicates whether more content chunks are expected. When false, flushes all cached content and completes rendering |`boolean`|`false`|
47
47
| enableAnimation | Enables text fade-in animation for block elements (`p`, `li`, `h1`, `h2`, `h3`, `h4`) |`boolean`|`false`|
48
48
| animationConfig | Configuration for text appearance animation effects |`AnimationConfig`|`{ fadeDuration: 200, opacity: 0.2 }`|
49
-
|incompletePlaceholderMap| Placeholder mapping for unclosed Markdown elements, supports custom placeholder components for links and images |`{ link?: string; image?: string }`|`{ link: 'incomplete-link', image: 'incomplete-image' }`|
49
+
|incompleteMarkdownComponentMap| Placeholder mapping for unclosed Markdown elements, supports custom placeholder components for links and images |`{ link?: string; image?: string }`|`{ link: 'incomplete-link', image: 'incomplete-image' }`|
0 commit comments