Documentation

This commit is contained in:
squidfunk
2022-10-02 17:34:23 +02:00
parent f139b54c61
commit 270f372309
3 changed files with 53 additions and 5 deletions

View File

@@ -642,7 +642,7 @@ related content and code blocks under accessible tabs. Enable it via
``` yaml
markdown_extensions:
- pymdownx.tabbed:
alternate_style: true
alternate_style: true
```
The following configuration options are supported:
@@ -657,9 +657,34 @@ The following configuration options are supported:
``` yaml
markdown_extensions:
- pymdownx.tabbed:
alternate_style: true
alternate_style: true
```
[`slugify`](#+pymdownx.tabbed.slugify){ #+pymdownx.tabbed.slugify }
: :octicons-milestone-24: Default: `headerid.slugify` This option allows for
customization of the slug function. For some languages, the default may not
produce good and readable identifiers consider using another slug function
like for example those from [Python Markdown Extensions][Slugs]:
=== "Unicode"
``` yaml
markdown_extensions:
- pymdownx.tabbed:
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
```
=== "Unicode, case-sensitive"
``` yaml
markdown_extensions:
- pymdownx.tabbed:
slugify: !!python/object/apply:pymdownx.slugs.slugify
```
The other configuration options of this extension are not officially supported
by Material for MkDocs, which is why they may yield unexpected results. Use
them at your own risk.
@@ -678,6 +703,7 @@ See reference for usage:
[Grouping code blocks]: ../../reference/content-tabs.md#grouping-code-blocks
[Grouping other content]: ../../reference/content-tabs.md#grouping-other-content
[Embedded content]: ../../reference/content-tabs.md#embedded-content
[Slugs]: https://facelessuser.github.io/pymdown-extensions/extras/slugs/
### Tasklist