Skip to content

1.6.2 - 2026-10-08

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 08:26
7627c2f

Release Notes

A font fix. Since 1.5.0, documents rendered without a configured font lost all bold and italic on Windows and macOS: every emphasized word came out in the regular face.

Thanks to Marc-Antoine Kruzik (@maf-kruzik-marc-antoine) for the report and the version bisect in #124.

  • Bold and italic faces are found on Windows: sibling faces were matched by file name alone, but Windows names them with short codes (segoeuib.ttf, arialbd.ttf, timesbi.ttf), so the automatically picked Segoe UI, and any configured Windows font, never found its bold or italic files. Faces are now also matched by the family name stored in each font, with weight and slant read from the font itself. Only the font headers are read, so scanning C:\Windows\Fonts stays fast.
  • Emphasis never silently disappears: when a family has no bold or italic face at all, such as Geneva on macOS or Tahoma's missing italic, bold is synthesized by stroking the glyph outlines and italic by slanting them. Families with real faces are unaffected.
  • Windows font names resolve: font_family = "Times New Roman", "Courier New", or "Consolas" failed on Windows because the files are times.ttf, cour.ttf, and consola.ttf. Lookup now falls back to the family name inside each font when no file name matches.
  • Arial is the macOS default body font: with no font configured, macOS now picks Arial, which has real bold and italic faces and covers more symbols, ahead of the regular-only Geneva.
  • CI runs on Windows and macOS: the default test suite now runs on all three platforms, with a smoke test that renders emphasis through the real binary.

Resolves #124.

Install markdown2pdf 1.6.2

Install prebuilt binaries via Homebrew

brew install theiskaa/tap/markdown2pdf

Download markdown2pdf 1.6.2

File Platform Checksum
markdown2pdf-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
markdown2pdf-x86_64-apple-darwin.tar.xz Intel macOS checksum
markdown2pdf-x86_64-pc-windows-msvc.zip x64 Windows checksum
markdown2pdf-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
markdown2pdf-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum