-
Hello, I try to create NextJS component for my content project. I use this starter: https://github.com/timlrx/tailwind-nextjs-starter-blog which use MDX for rendering Markdown documents. In my .md file I'd like to use the following structute:
Please help me, thanks! I added MDX component to my NextJS project:
I want to convert 'Proscons' content (from .md file) to a string and then convert it to array with pros and cons list as HTML UL list. The problem that I don't know how to get content which I can convert to array. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That isn’t markdown. We support markdown. |
Beta Was this translation helpful? Give feedback.
That isn’t markdown. We support markdown.
It’s not recommended to extend markdown like that. You should use JSX components, or you could perhaps abuse GFM tasklists: https://github.github.com/gfm/#task-list-items-extension-