Markdown is a React component used to render markdown text. It supports various markdown syntax such as headings, lists, links, images, code blocks and more. It is commonly used in documentation, blogs, and other text-heavy applications.
Markdown
import { Markdown } from '@lobehub/ui';
Default
This is an H1
This is an H2
This is an H3
This is an H4
This is an H5
The point of reference-style links is not that they’re easier to write. The point is that with reference-style links, your document source is vastly more readable. Compare the above examples: using reference-style links, the paragraph itself is only 81 characters long; with inline-style links, it’s 176 characters; and as raw HTML
, it’s 234 characters. In the raw HTML
, there’s more markup than there is text.
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
an example | an example | an example


- Bird
- McHale
- Parish
- Bird
- McHale
- Parish
- Red
- Green
- Blue
- Red
- Green
- Blue
This is an example inline link.
title | title | title |
---|---|---|
content | content | content |
$ pnpm install
import { renderHook } from '@testing-library/react-hooks';
import { act } from 'react-dom/test-utils';
import { useDropNodeOnCanvas } from './useDropNodeOnCanvas';
以下是一段Markdown格式的LaTeX数学公式:
我是一个行内公式:
我是一个独立的傅里叶公式:
其中,带有积分符号的项:
我是一个带有分式、测试长度超长的泰勒公式:
我是一个带有上下标的公式:
我是一个嵌套测试:
$1
Chat Mode
This is an H1
This is an H2
This is an H3
This is an H4
This is an H5
The point of reference-style links is not that they’re easier to write. The point is that with reference-style links, your document source is vastly more readable. Compare the above examples: using reference-style links, the paragraph itself is only 81 characters long; with inline-style links, it’s 176 characters; and as raw HTML
, it’s 234 characters. In the raw HTML
, there’s more markup than there is text.
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
an example | an example | an example


<video poster="https://gw.alipayobjects.com/zos/kitchen/sLO%24gbrQtp/lobe-chat.webp" src="https://github.com/lobehub/lobe-chat/assets/28616219/f29475a3-f346-4196-a435-41a6373ab9e2"/>
- Bird
- McHale
- Parish
- Bird
- McHale
- Parish
- Red
- Green
- Blue
- Red
- Green
- Blue
This is an example inline link.
title | title | title |
---|---|---|
content | content | content |
$ pnpm install
import { renderHook } from '@testing-library/react-hooks';
import { act } from 'react-dom/test-utils';
import { useDropNodeOnCanvas } from './useDropNodeOnCanvas';
以下是一段Markdown格式的LaTeX数学公式:
我是一个行内公式:
我是一个独立的傅里叶公式:
其中,带有积分符号的项:
我是一个带有分式、测试长度超长的泰勒公式:
我是一个带有上下标的公式:
我是一个嵌套测试:
$1
Shiki Transformers
transformerNotationDiff
export function foo() {
console.log('hewwo') // [!code --]
console.log('hello') // [!code ++]
}
transformerNotationHighlight
export function foo() {
console.log('Highlighted') // [!code highlight]
}
transformerNotationWordHighlight
export function foo() { // [!code word:Hello]
const msg = 'Hello World'
console.log(msg) // 打印 Hello World
}
transformerNotationFocus
export function foo() {
console.log('Focused') // [!code focus]
}
transformerNotationErrorLevel
export function foo() {
console.error('Error') // [!code error]
console.warn('Warning') // [!code warning]
}
Custom Markdown Components
Customize Markdown Components
Customize Anchor Behavior
This is an example inline link.
Customize Hr
Customize Image Display

Custom Highlight
export default ({ children, className }: MarkdownProps) => {
const { styles } = useStyles();
return (
<ReactMarkdown
className={cx(styles.container, className)}
components={{ pre: CodeBlock, code: Code }}
>
{children}
</ReactMarkdown>
);
}
Custom Plugins
好的,让我来用新的视角解释一下"睡觉"这个词。
这是我为"睡觉"这个词创作的新解释卡片。
APIs
Name | Description | Type | Default |
---|---|---|---|
allowHtml | -- | boolean | -- |
children | -- | string | (required) |
className | -- | string | -- |
componentProps | -- | {a?:object;highlight?:any;img?:any;mermaid?:any;pre?:any;video?:any} | -- |
components | -- | {code?:CodeComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h1?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h2?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h3?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h4?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h5?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";h6?:HeadingComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";li?:LiComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";ol?:OrderedListComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";td?:TableDataCellComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";th?:TableHeaderCellComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";tr?:TableRowComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view";ul?:UnorderedListComponent|"symbol"|"object"|"text"|"style"|"slot"|"title"|"th"|"tr"|"search"|"article"|"button"|"dialog"|"figure"|"form"|"img"|"link"|"main"|"menu"|"menuitem"|"option"|"switch"|"table"|"small"|"circle"|"time"|"center"|"a"|"abbr"|"address"|"area"|"aside"|"audio"|"b"|"base"|"bdi"|"bdo"|"big"|"blockquote"|"body"|"br"|"canvas"|"caption"|"cite"|"code"|"col"|"colgroup"|"data"|"datalist"|"dd"|"del"|"details"|"dfn"|"div"|"dl"|"dt"|"em"|"embed"|"fieldset"|"figcaption"|"footer"|"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"head"|"header"|"hgroup"|"hr"|"html"|"i"|"iframe"|"input"|"ins"|"kbd"|"keygen"|"label"|"legend"|"li"|"map"|"mark"|"meta"|"meter"|"nav"|"noindex"|"noscript"|"ol"|"optgroup"|"output"|"p"|"param"|"picture"|"pre"|"progress"|"q"|"rp"|"rt"|"ruby"|"s"|"samp"|"script"|"section"|"select"|"source"|"span"|"strong"|"sub"|"summary"|"sup"|"template"|"tbody"|"td"|"textarea"|"tfoot"|"thead"|"track"|"u"|"ul"|"var"|"video"|"wbr"|"webview"|"svg"|"animate"|"animateMotion"|"animateTransform"|"clipPath"|"defs"|"desc"|"ellipse"|"feBlend"|"feColorMatrix"|"feComponentTransfer"|"feComposite"|"feConvolveMatrix"|"feDiffuseLighting"|"feDisplacementMap"|"feDistantLight"|"feDropShadow"|"feFlood"|"feFuncA"|"feFuncB"|"feFuncG"|"feFuncR"|"feGaussianBlur"|"feImage"|"feMerge"|"feMergeNode"|"feMorphology"|"feOffset"|"fePointLight"|"feSpecularLighting"|"feSpotLight"|"feTile"|"feTurbulence"|"filter"|"foreignObject"|"g"|"image"|"line"|"linearGradient"|"marker"|"mask"|"metadata"|"mpath"|"path"|"pattern"|"polygon"|"polyline"|"radialGradient"|"rect"|"set"|"stop"|"textPath"|"tspan"|"use"|"view"} | -- |
customRender | -- | (dom:React.ReactNode,context:{ text: string; })=>ReactNode | -- |
enableImageGallery | -- | boolean | -- |
enableLatex | -- | boolean | -- |
enableMermaid | -- | boolean | -- |
fullFeaturedCodeBlock | -- | boolean | -- |
onDoubleClick | -- | ()=>void | -- |
rehypePlugins | -- | Pluggable<Array>[] | -- |
remarkPlugins | -- | Pluggable<Array>[] | -- |
style | -- | {} | -- |
variant | -- | "normal"|"chat" | -- |
fontSize | -- | number | -- |
headerMultiple | -- | number | -- |
lineHeight | -- | number | -- |
marginMultiple | -- | number | -- |