Skip to content

markdown-pdf-export 2.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 16:32
· 25 commits to main since this release
Immutable release. Only release title and notes can be modified.
v2.5.0
fc5b9a7

Added

  • Mermaid diagrams: a ```mermaid code block is drawn as a diagram (flowchart, sequence,
    Gantt, class, state, pie and the rest). On by default, works offline; set "mermaid": false
    or --no-mermaid to print the code instead. Diagrams are drawn in a separate page before
    printing, so the document page still runs no JavaScript. A diagram with a mistake stays a
    code block and is listed in the new diagram_errors result field.
  • Task lists (- [x]), footnotes ([^1]) and GitHub alerts (> [!NOTE], [!TIP],
    [!IMPORTANT], [!WARNING], [!CAUTION]) now render instead of printing as plain text.
    Always on, no setting.

Changed

  • Headings get an id by default, so [text](#heading) links work in the PDF without any setting.
    Set "heading_anchors": false (or --no-heading-anchors) to turn it off. A custom stylesheet
    with #slug selectors may now match headings.

npm: https://www.npmjs.com/package/markdown-pdf-export/v/2.5.0