tcd / md2pdf

📜 Generate PDFs from Markdown files
MIT License
7 stars 4 forks source link

anchors links not working on MAC or Chrome browser #2

Open gedw99 opened 3 years ago

gedw99 commented 3 years ago

love this package.

The anchor links feature in the markdown-cheatsheet example is great but does not work. I did not know that PDF's support the equivalent of HTML Anchors, but cool that PDF does support this.

Test matrix

On MAC, you get a dialog error when using the default built in PDF viewer.

Screenshot 2021-06-03 at 09 25 18

On Chrome Browser, you get no error, but its does not navigate.

Screenshot 2021-06-03 at 09 26 05

Reproduction:


print:
    converts markdown specs to pdf.

dep:
    # https://github.com/tcd/md2pdf
    brew tap tcd/taps
    brew install tcd/taps/md2pdf

run-mdtopdf:
    md2pdf version

    # local test
    md2pdf test.md

    # remote test
    # TOCS in mac standard PDF reader not working. 
    md2pdf remote https://raw.githubusercontent.com/tcd/md2pdf/master/example/markdown-cheatsheet.md markdown-cheatsheet.pdf
gedw99 commented 3 years ago

seems that this is related ?

https://softwarerecs.stackexchange.com/questions/26889/view-anchors-in-a-pdf-document