Functions
_get_markdown_engine_and_version
Determine configured markdown engine and resolve its library version.
_get_markdown_engine_and_version
def _get_markdown_engine_and_version(config: dict[str, Any]) -> tuple[str, str | None]
Determine configured markdown engine and resolve its library version.
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
config |
dict[str, Any] |
— |
Returns
tuple[str, str | None]
build_template_metadata
Build a curated, privacy-aware metadata dictionary for templates/JS.
Exposure levels (via config['…
build_template_metadata
def build_template_metadata(site: Site) -> dict[str, Any]
Build a curated, privacy-aware metadata dictionary for templates/JS.
Exposure levels (via config['expose_metadata']):
- minimal: engine only
- standard: + theme, build timestamp, i18n basics
- extended: + rendering details (markdown/highlighter versions)
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
site |
Site |
— |
Returns
dict[str, Any]