How could I have html elements inside a list item? #2267
-
Hi, how could I generate html similar to below with mdx?
|
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Mar 12, 2023
Replies: 1 comment 1 reply
-
Welcome @xuan-nguyen-swe! 👋 1. item 1
<details>
nested markdown for item details 1
1. item 1.1
2. item 1.2
</details>
2. item 2
<details>
nested markdown for item details 2
1. item 2.1
2. item 2.2
</details> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xuanswe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome @xuan-nguyen-swe! 👋
The example you give is already valid MDX, you could use it as-is, if you'd like.
Or if you prefer using markdown list syntax, you can, it would look something like the following: