MarkdownPDF 0.1.0
First tagged release of MarkdownPDF, a Pure Swift Markdown to PDF renderer for macOS and Linux. No browser engines, PDFKit, CoreGraphics, or C libraries; PDF bytes are serialized by hand.
Highlights
- Markdown parser + PDF renderer +
markdownpdfCLI; headings, lists, tables, images, links, block quotes, code blocks, themes, and an opt-in table of contents. - Embedded TrueType fonts (Type0 / CIDFontType2 / FontFile2 / ToUnicode) with correct CID
/Wand FontDescriptor scaling, so multilingual text (diacritic Latin, Cyrillic, Greek) renders identically across viewers and platforms. - Native vector charts, a portable Mermaid subset, and opt-in syntax coloring.
- Opt-in TeX-math via the shared, dependency-free MathTypeset engine: inline and display math, scripts, fractions, scaling stroke radicals, and a documented subset.
- A full visual witness battery (qpdf, Poppler
pdftotext -tsv, MuPDF character quads, Poppler-vs-MuPDF raster) on embedded-font fixtures, plus a diverse multilingual showcase corpus rendered across US Letter, Legal, Tabloid, A3, and A5.
Verified on macOS and Linux against both CI fonts (DejaVu, Liberation).