Rendering
Rendering extensions project or decorate a parsed document without changing its stored Markdown. Use them to control generated structure, links, headings, and attributes.
Extensions
- Heading levels: project headings to different HTML levels.
- Content slicer: wrap heading sections in semantic elements.
- Permalinks: add stable links to headings.
- Contents: build a document outline.
- Default attributes: add controlled HTML attributes.
- Code titles: label fenced code blocks.
- External links: classify and mark outbound links.
- Link rewriting: transform destinations at render time.
These projections affect rendered output. toMarkdown() continues to preserve
the source unless a separate edit or formatting operation changes it.