snacks.nvim/lua
Ori Perry 3f0fe34308
feat(image): allow specifying a page number for inlined pdfs (#1806)
## Description
Allow specifying a page number for pdfs inside of markdown.

This is done by adding "#page=<page-number>" to the file name. This is
same way it is done in obsidian (as discussed in
https://forum.obsidian.md/t/link-to-the-exact-page-of-and-external-pdf-file/2111)

The parsing of the page info should probably be done way before the
conversion, but this was the best I could with my limited time.
I'm pretty new to lua, and this codebase, so this might not be the best
code, but I hope it at least helps :D
## Related Issue(s)

  - Fixes #1805
2025-10-20 15:05:53 +02:00
..
snacks feat(image): allow specifying a page number for inlined pdfs (#1806) 2025-10-20 15:05:53 +02:00
trouble/sources Revert "feat: test" 2025-02-14 22:13:38 +01:00