Skip to content

v0.10.0

Choose a tag to compare

@vinicq vinicq released this 21 Jul 17:25
· 31 commits to main since this release
4053af7

Seven opt-in converter heuristics, each off by default, so a document converted with the defaults is byte-identical to 0.9.0.

Added

  • Table column alignment (#175): with table_column_align, the separator row carries the GFM alignment markers (:---, ---:, :---:) detected from each column's text extent.
  • Tight and loose lists (#168): tight_loose_lists preserves a PDF list's spacing as CommonMark tight or loose lists; list_loose_threshold (1.5x the dominant body font size by default) sets the cutoff.
  • Image width hints (#169): image_width_hints emits each image's source width as a {width=N} attr-list hint, converted from PDF points to CSS pixels so a round-trip keeps the original size. Needs with_images.
  • Image click links (#170): image_link_anchors keeps an image's click-through as [![alt](src)](target). The document post-passes recognize the construct and operate on the external target. Needs with_images.
  • Nested ordered lists (#194): nested_ordered_lists keeps a nested ordered sublist's own start number and indents it four spaces per level so the renderer nests it.
  • Grid tables (#166): multiline_table_format=grid emits a Pandoc grid table for a table with a multi-line cell, so the line breaks survive. Rendering a grid table back to a PDF needs the optional grid-tables extra (markdown-grids, MIT). Adopted in ADR-001.
  • Definition lists (#161): detect_definition_lists emits Term / : definition for a glossary layout, a run of at least two term/definition pairs. Conservative guards keep false positives low. Adopted in ADR-001.

Dependencies

Bumped the nginx base image (#425), the web typescript-eslint group (#426), @testing-library/jest-dom to 7 (#427), the CI actions group (#428), and actions/setup-python to 7 (#429).

Full changelog: v0.9.0...v0.10.0