File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,29 @@ grouping code blocks and other content.
18
18
The [ Tabbed] [ 2 ] extension, which is part of [ Python Markdown Extensions] [ 3 ] ,
19
19
integrates with Material for MkDocs and can be enabled via ` mkdocs.yml ` :
20
20
21
- ``` yaml
22
- markdown_extensions :
23
- - pymdownx.tabbed
24
- ` ` `
21
+ === "Modern"
22
+
23
+ ``` yaml
24
+ markdown_extensions:
25
+ - pymdownx.tabbed:
26
+ alternate_style: true # (1)
27
+ ```
28
+
29
+ 1. As of 7.3.1, support was added for the new [`alternate_style`][12] flag,
30
+ which has much better behavior on smaller screen sizes, as content tabs
31
+ are now scrollable and will overflow instead of break across multiple
32
+ lines.
33
+
34
+ __The legacy style will be deprecated with the next major release.__
35
+
36
+ [ 12 ] : https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#alternate-style
37
+
38
+ === "Legacy"
39
+
40
+ ``` yaml
41
+ markdown_extensions:
42
+ - pymdownx.tabbed
43
+ ```
25
44
26
45
[ 1 ] : https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss
27
46
[ 2 ] : https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/
You can’t perform that action at this time.
0 commit comments