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
Add support for permalink #22
Comments
And now, this plugin is remove all mkdocs-with-pdf/mkdocs_with_pdf/generator.py Lines 74 to 76 in 6ca26b4
|
Yes, you are right there should not be anything shown in the pdf. However I think it would be nice if the links would still work. |
Does that mean a direct link from the browser? Also, the output PDF already contains a link point to the element with 'id' attribute (no permalink option required). eg. <dt><code id="setup/setting-up-navigation/:permalink">permalink</code></dt> Please check the output HTML using the |
I think this was an error on my side, with the update of #21 most of the links to anchors on the same site are working. I currently think that it is not related to permalink. I'll investigate further and provide an example mkdocs when I figure out the problem. Thanks again :) |
Material for mkdocs supports the
permalink
markdown extension as described here:https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#table-of-contents
It would be great to have support for that in the pdf, in the sense that when a link points to the anchor like this
it is correctly resolved.
The text was updated successfully, but these errors were encountered: