-
pymdown has a nice Tabbed extension I thought I would take a quick stab at a rehype plugin for this. It seems fairly straightforward, with one exception: pymdown does something strange (in my opinion) w.r.t. indentation. The content of each tab is indented, which runs contrary to the normal interpretation of indentation in markdown. Am I correct in guessing that doing this at the rehype level would not be possible (at least, coming at this from Here you can see that I kinda got it working, but without the indentation that pymdown supports (requires?) Screenshot of my hack |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you’re going to go with non-standard extensions to the language, I recommend using directives as it’s at least well thought out and solves many use cases, and it’s the most likely to become standard. |
Beta Was this translation helpful? Give feedback.
If you’re going to go with non-standard extensions to the language, I recommend using directives as it’s at least well thought out and solves many use cases, and it’s the most likely to become standard.
More info on whether it’s a good idea to extend markdown and how to do it at different levels is detailed here: https://github.com/micromark/micromark#extensions.