v0.1.2-toc-footnotes(hot-fix)
Release v0.1.2 - Document Structure & Metadata
This release introduces new features for document structure and metadata handling, focusing on Table of Contents generation, PDF metadata injection, and GFM footnotes support.
Key Features
Table of Contents Generation
- Generates hyperlinked Table of Contents via
--tocCLI flag ortoc: trueAPI configuration. - Configurable heading depth using
--toc-depthand custom section titles via--toc-title. - Automatically assigns stable, URL-safe ID anchors to all headings (
h1–h6) usingrehype-slug.
YAML Frontmatter & PDF Metadata
- Integrates
gray-matterfor parsing YAML frontmatter. - Utilizes
pdf-libto inject frontmatter properties (title,author,subject,keywords) directly into the final PDF document metadata. - Files containing
publish: falsein frontmatter are correctly ignored.
Footnotes Support
- Natively supports GitHub Flavored Markdown (GFM) footnotes with bidirectional backlinks.
- Restyled footnote definitions to appear accurately at the document base with a smaller font and standard separator line.
Developer & Internal Improvements
- Extended
ConvertOptionsandConvertResultAPI interfaces withtocconfigurations andPdfMetadataoverrides. - Added custom AST plugin (
rehypeToc) for robust TOC generation. - Added new visual Golden Document fixtures (
toc.md,metadata.md,footnotes.md) to the regression test suite.
Full Changelog: v0.1.1...v0.1.2