Table of components
MDXProvider
uses React Context to provide the component mapping internally to MDX when it renders. The following components are rendered from Markdown, so these can be keys in the component object you pass to MDXProvider
.
Tag | Name | Syntax |
---|---|---|
p | Paragraph | |
h1 | Heading 1 | # |
h2 | Heading 2 | ## |
h3 | Heading 3 | ### |
h4 | Heading 4 | #### |
h5 | Heading 5 | ##### |
h6 | Heading 6 | ###### |
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 | |
code | Code | ```code``` |
inlineCode | InlineCode | `inlineCode` |
pre | Code | ```code``` |
em | Emphasis | _emphasis_ |
strong | Strong | **strong** |
del | Delete | ~~strikethrough~~ |
hr | Thematic break | --- or *** |
a | Link | <https://mdxjs.com> or [MDX](https://mdxjs.com) |
img | Image | ![alt](https://mdx-logo.now.sh) |