Stage 4: Pandoc Conversion¶
obsidian_export.pipeline.stage4_pandoc
¶
Stage 4: Pandoc invocation for PDF and DOCX output.
PandocInvocation
dataclass
¶
Groups the parameters shared by PDF and DOCX pandoc conversions.
Source code in obsidian_export/pipeline/stage4_pandoc.py
convert_to_pdf
¶
Convert preprocessed markdown text to PDF via pandoc + tectonic.
Source code in obsidian_export/pipeline/stage4_pandoc.py
convert_to_docx
¶
Convert preprocessed markdown text to DOCX via pandoc.
Applies DOCX-specific Lua filters (callout boxes, footnote promotion,
page breaks) from the invocation's filters_dir. If reference_doc is
provided, it is passed as --reference-doc to inject custom styles.