Skip to content

Rewrite Markdown links in merged PDFs - #17

Merged
0xtlt merged 1 commit into
mainfrom
fix/internal-markdown-links
Aug 19, 2026
Merged

Rewrite Markdown links in merged PDFs#17
0xtlt merged 1 commit into
mainfrom
fix/internal-markdown-links

Conversation

@0xtlt

@0xtlt 0xtlt commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • detect relative .md links whose targets are included in a merged PDF
  • rewrite matching PDF URI annotations as internal GoTo destinations to the target document's first page
  • preserve unmatched Markdown links as URIs and document the new merge behavior

Testing

  • cargo fmt --check
  • cargo clippy --all-targets --locked -- -D warnings
  • cargo test --locked (55 unit tests and 26 CLI integration tests)
  • RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --locked
  • generated a two-page merged PDF and verified the link annotation is /S/GoTo to page 2 with no .md URI

Demo

No video: this changes PDF link behavior without changing visual layout.

@0xtlt
0xtlt merged commit 1561171 into main Aug 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant