Example of nested content tabs? #7906
-
I'm using: markdown_extensions:
- footnotes
- pymdownx.superfences
- pymdownx.blocks.admonition
- pymdownx.blocks.tab:
alternate_style: True And am trying to figure out the proper syntax for nested tab content. Can anyone provide an example of this? Here's my closest attempt thus far: /// tab | parent of three
/// tab | first child
content of first child
///
/// tab | second child
new: false
content of second child
///
/// tab | third child
new: false
content of third child
///
///
/// tab | aunt
content of aunt
///
/// tab | uncle
content of uncle
/// The result is that the children are indeed nested under the parent, but they are not siblings (part of the same group): I also tried indenting the children two more spaces, but that made them a code block. Over at the this content tabs reference it's mentioned that:
Any help would be greatly appreciated, thanks! I think the tab docs could do with an example of this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The block syntax does not require indented nested content like this. If nesting, you need to ensure a different number of fence markers:
|
Beta Was this translation helpful? Give feedback.
The block syntax does not require indented nested content like this. If nesting, you need to ensure a different number of fence markers: