mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Updated slugify documentation
Unicode, case-sensitive reference setting causes error below.
```
yaml.constructor.ConstructorError: expected a mapping node, but found scalar
```
Update related sections in the documentation to address this issue.
Newer Python-Markdown has `slugify_unicode` built-in, so this
```yaml
markdown_extensions:
- toc:
slugify: !!python/name:markdown.extensions.toc.slugify_unicode
```
also works for case-insensitive use cases.
Fixes: ee1e675da6 ("Update slug reference")
This commit is contained in:
committed by
Martin Donath
parent
e71f00b4c9
commit
7d6d8d7a7c
@@ -257,7 +257,7 @@ The following configuration options are supported:
|
||||
``` yaml
|
||||
markdown_extensions:
|
||||
- toc:
|
||||
slugify: !!python/object/apply:pymdownx.slugs.slugify
|
||||
slugify: !!python/object/apply:pymdownx.slugs.slugify {}
|
||||
```
|
||||
|
||||
<!-- md:option toc.toc_depth -->
|
||||
|
||||
Reference in New Issue
Block a user