Skip to content

Commit cebce54

Browse files
authored
Enable heading permalinks with unicode-aware TOC slugs
Add toc.permalink so readers can copy deep links to subsections, and use slugify_unicode so non-Latin headings get stable readable anchors instead of #_1 fallbacks.
1 parent 0d34413 commit cebce54

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mkdocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ markdown_extensions:
4141
- def_list
4242
- attr_list
4343
- md_in_html
44+
- toc:
45+
permalink: true
46+
slugify: !!python/name:markdown.extensions.toc.slugify_unicode
4447

4548
plugins:
4649
- open-in-new-tab

0 commit comments

Comments
 (0)