Code Block Content Tabs - Without Indent #1495
-
https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#grouping-code-blocks
The blocks are already marked. Why not optionally support existing end of block as end of tab content instead of requiring indenting? Code blocks are defined by lines before and after the code so standard code can be inserted without changing each line. The issue with current tabbed implementation is each line within the tab must be changed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe I already answered this, but it is due to the fact that it works better with the Python Markdown parser. I'm also not sure what the complaint is exactly. Tabs can hold complex content, not just code blocks. Managing this complex content in a container in Python Markdown honestly works best using indentation like lists, Admonitions, and Details are handled. If Python Markdown made it easier to do this without indentation syntax, I may have considered other ways. I'm not going to go into specifics with why it is easier to handle a Table with a block processor but not a Tabbed container, but as an example, there is a reason why the |
Beta Was this translation helpful? Give feedback.
I believe I already answered this, but it is due to the fact that it works better with the Python Markdown parser. I'm also not sure what the complaint is exactly.
Tabs can hold complex content, not just code blocks. Managing this complex content in a container in Python Markdown honestly works best using indentation like lists, Admonitions, and Details are handled. If Python Markdown made it easier to do this without indentation syntax, I may have considered other ways.
I'm not going to go into specifics with why it is easier to handle a Table with a block processor but not a Tabbed container, but as an example, there is a reason why the
fenced_code
extension in Python Markdown doesn't w…