Documentation
README
Markdown → PDF (pandoc + headless Chrome)
Problem
Converting Markdown to PDF through pandoc's default LaTeX route breaks on
real-world GitHub-flavored documents: Unicode box-drawing characters in code
blocks (├──) crash pdflatex, wide GFM tables overflow the page, remote
images need manual download, and the output looks nothing like the rendered
Markdown the author reviewed. Naive HTML routes drop images or paste them at
native resolution so they spill off the page.
Context / Trigger Conditions
- User asks to save/convert/export a
.mdfile as PDF. - The document carries images (hosted PNGs, local figures), GFM tables,
fenced code blocks, blockquotes, or
#-anchor TOC links. - Requirements like "all images must be preserved" or "scaled appropriately".
Solution
This is the opening of the README. Read the full README on GitHub.