-
Hi. I'm trying to create a plugin to emulate pymdown.tabbed plugin. It allows to create tabs like this:
And transforms it to html node (in my case I also want to replace it with mdx node instead, but its not that relevant here) like that:
As you can see, the can be markdown syntax or html content inside the tab. And because of the for space symbols before it, it is parsed to the I already made a version that do that I want, but maybe there is a way to make it in more efficient. What I do right now:
This works, but I don't like a number or things in my implementation:
In the perfect world I would like to be able to do something like that:
I probably can achieve 3 with Can you please help me, maybe I'm doing something wrong and there is a better way to implement this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
If you’re using MDX, why not use JSX components? For markdown extensions, maybe directives are better? https://github.com/remarkjs/remark-directive |
Beta Was this translation helpful? Give feedback.
-
@wooorm I need backwards compatibility with the existing docs site created with the |
Beta Was this translation helpful? Give feedback.
@wooorm I need backwards compatibility with the existing docs site created with the
mkdocs
. They are actively developed right now and will for some time exist in both versions old mkdocs one and new mdx one.