You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(wiki export): strip frontmatter before pandoc; re-inject as --metadata
Real-world pages have frontmatter like:
title: Decision: We decided to migrate from MySQL
^^^^^^^^ unquoted colon
Pandoc's YAML parser (stricter than our own) rejects this with
'mapping values are not allowed in this context', blocking export.
Fix: pre-split the frontmatter in Python (tolerant key:value regex)
and feed only the body to pandoc with --from markdown-yaml_metadata_block
(explicit suppression). Title / subtitle / author / date / abstract
are re-injected as pandoc --metadata flags so the title block still
renders correctly in PDF/DOCX output.
Tested on a real backfilled ADR with unquoted colon in title —
extracts the full title string and the body cleanly.
0 commit comments