How to add html tags in mdx #2081
Answered
by
wooorm
maximecharriere
asked this question in
Q&A
-
On GitHub I do multi-line cells in markdown using the But now when using MDX, I got the error : How to do multi-line cells in mdx and more globally put html tag in mdx ? |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Jul 15, 2022
Replies: 1 comment 1 reply
-
MDX does not have HTML. It has JSX. They are similar, but not the same, and JSX can be used with the elements of HTML. Use JSX syntax: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
maximecharriere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MDX does not have HTML. It has JSX. They are similar, but not the same, and JSX can be used with the elements of HTML.
Use JSX syntax:
<br />
.