Expand description
Anchor generation styles for different Markdown platforms
This module provides different anchor generation implementations that match the behavior of various Markdown platforms:
- GitHub: GitHub.com’s official anchor generation algorithm
- KramdownGfm: Kramdown with GFM input (used by Jekyll/GitHub Pages)
- Kramdown: Pure kramdown without GFM extensions
Each style is implemented in a separate module with comprehensive tests verified against the official tools/platforms.
Common utilities are shared via the common module to avoid duplication.
Modules§
- common
- Common utilities shared across anchor style implementations
- github
- GitHub.com official anchor generation with security hardening
- kramdown
- Pure kramdown anchor generation with security and performance hardening
- kramdown_
gfm - Kramdown with GFM input anchor generation
- python_
markdown - Python-Markdown anchor generation (used by MkDocs)
Enums§
- Anchor
Style - Anchor generation style for heading fragments