Skip to content

Content Tabs

Content Tabs

How to enable this

Add the following to mkdocs.yml:

markdown_extensions:
  - pymdownx.tabbed:
      alternate_style: true

alternate_style: true is required — the legacy tab style is not supported by Material.

This is some examples of content tabs.

Generic Content

This is some plain text

  • First item
  • Second item
  • Third item
  1. First item
  2. Second item
  3. Third item

Code Blocks in Content Tabs

def main():
    print("Hello world!")

if __name__ == "__main__":
    main()
function main() {
    console.log("Hello world!");
}

main();