组件列表
MDXProvider
渲染时,在内部使用 React Context 来提供组件
到 MDX 的映射
以下组件从 Markdown 渲染而来,因此它们可以作为
传递给 MDXProvider
的组件对象的键(key)来使用
标签 | 名称 | 语法 |
---|---|---|
p | Paragraph | |
h1 | Heading 1 | # |
h2 | Heading 2 | ## |
h3 | Heading 3 | ### |
h4 | Heading 4 | #### |
h5 | Heading 5 | ##### |
h6 | Heading 6 | ###### |
thematicBreak | Thematic break | *** |
blockquote | Blockquote | > |
ul | List | - |
ol | Ordered list | 1. |
li | List item | |
table | Table | |
thead | Table head | |
tbody | Table body | |
tr | Table row | |
td /th | Table cell | |
pre | Pre | |
code | Code | ```code``` |
em | Emphasis | _emphasis_ |
strong | Strong | **strong** |
del | Delete | ~~strikethrough~~ |
inlineCode | InlineCode | `inlineCode` |
hr | Break | --- |
a | Link | <https://mdxjs.com> or [MDX](https://mdxjs.com) |
img | Image |  |