Repository navigation
markdown-pdf-export 2.5.0
·
25 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
- Mermaid diagrams: a
```mermaidcode 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-mermaidto 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 newdiagram_errorsresult 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#slugselectors may now match headings.
npm: https://www.npmjs.com/package/markdown-pdf-export/v/2.5.0