-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOC #67
Comments
Hi @gedw99 , I ran this command: md2pdf -title "test title" \
-author "Gerard Webb" --page-size A4 \
-i https://github.com/user-attachments/files/19100608/test_all.md \
-with-footer -log-file pdf.log \
--theme /usr/share/mdtopdf/dark_theme.json -o test_all.md.pdf Attached is the resulting PDF. |
It’s works in terms of producing a pdf , but did you try clicking a link in the TOC ? The stated issues is that: “The links ( the TOC ones ) in the final PDF try to open a new page in Mac PDF native viewer..” It’s not working :) It’s likely an issue with the way TOC produces the markdown . |
Yes. As I wrote:
Clicking works. It does not work with the example you've uploaded, but the PDF I uploaded works fine in all my PDF viewers. |
mhhh.. strange indeed. With your PDF, when I click a TOC item, it's tries to open a link via the browser. This is the MAC viewer. It should not do that. This is exactly the same as what my pdf also does. I have other golang software that builds PDF's, and the links in the PDF work properly in that when you click them it goes to go to another part of the same document, which is the correct way for a TOC. I suspect that the way the TOC is generated is wrong. But not sure yet.. |
I use Linux exclusively, so, couldn't test on Mac even if I wanted to, but this really isn't to do with what OS or viewer you use. In the case of the PDF I generated and shared, it tries to open external links, relative to the MD because, as I wrote in my initial comment, I've used the remote URL to the MD (
Well, no, the PDF you've shared, because you've not used a remote URL as the argument for That is not currently supported. As the README states, |
Cant seem to get TOC working with the mdtopdf
The links ( the TOC ones ) in the final PDF try to open a new page in Mac PDF native viewer..
See the see attachments...
test_all.md
test_all.md.pdf
I slap it into the test_all.md and then:
I gen a TOC off the MD using https://github.com/ekalinin/github-markdown-toc.go
I get this back:
The final markdown
The text was updated successfully, but these errors were encountered: