Support nested Markdown heading levels

This commit is contained in:
udo
2026-07-17 05:27:00 +00:00
parent 8dbff881a1
commit dbb8ae2c4b
5 changed files with 23 additions and 2 deletions
+1
View File
@@ -45,6 +45,7 @@ Options:
- `options["gfm"]` defaults to `true` and turns on GitHub-style extras such as tables, task lists, autolinks, and strikethrough.
- `options["allow_html"]` defaults to `false`. When true, raw HTML blocks and inline tags may pass through as `raw_html` nodes instead of being escaped as plain text.
- `options["heading_offset"]` shifts rendered heading levels while leaving AST `level` values unchanged. The default is `0`; final levels clamp to `h1` through `h6`. Use `1` when Markdown is nested below a component-owned page title.
- `options["components"]` declares renderer extension points using normal UCE components.
Directive hook example: