File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 640
640
],
641
641
"default" : true
642
642
},
643
+ "combine_header_slug" : {
644
+ "markdownDescription" : " https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.combine_header_slug" ,
645
+ "type" : " boolean" ,
646
+ "default" : true
647
+ },
643
648
"slugify" : {
644
649
"markdownDescription" : " https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.slugify" ,
645
650
"default" : " !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}"
Original file line number Diff line number Diff line change @@ -665,6 +665,18 @@ The following configuration options are supported:
665
665
alternate_style: true
666
666
` ` `
667
667
668
+ <!-- md:option pymdownx.tabbed.combine_header_slug -->
669
+
670
+ : <!-- md:default `false` --> This option enables the content tabs
671
+ [combine_header_slug style] flag, which prepends the id of the header to
672
+ the id of the tab :
673
+
674
+ ` ` ` yaml
675
+ markdown_extensions:
676
+ - pymdownx.tabbed:
677
+ combine_header_slug: true
678
+ ` ` `
679
+
668
680
<!-- md:option pymdownx.tabbed.slugify -->
669
681
670
682
: <!-- md:default `toc.slugify` --> This option allows for
@@ -702,6 +714,7 @@ See reference for usage:
702
714
703
715
[Tabbed] : https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/
704
716
[alternate style] : https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#alternate-style
717
+ [combine_header_slug style] : https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#tab-ids
705
718
[better behavior on mobile viewports] : https://twitter.com/squidfunk/status/1424740370596958214
706
719
[Grouping code blocks] : ../../reference/content-tabs.md#grouping-code-blocks
707
720
[Grouping other content] : ../../reference/content-tabs.md#grouping-other-content
You can’t perform that action at this time.
0 commit comments