fix_internal_links
only fixes pages and images, but not attachments
#42
Labels
bug
Something isn't working
One of my documentation websites offers internal links to Python scripts, text files and spreadsheets. Downloading those files work as expected from the MkDocs website.
The corresponding links get converted to anchors by mkdocs-print-site-plugin, though, and cannot be accessed anymore from the
print_page
or the resulting PDF.For example, in Markdown:
gets converted by MkDocs to:
and then by mkdocs-print-site-plugin:
But this anchor doesn't exist.
Could it be possible to fix the resulting urls, like, AFAICT,
fix_image_src
does for images?One quick-and-dirty fix I found is to modify https://github.com/timvink/mkdocs-print-site-plugin/blob/master/mkdocs_print_site_plugin/urls.py#L100 in order to consider those attachments as external url:
It might be a good idea to also apply
add_full_urls: true
to those attachments, so that the corresponding files can still be found even when the documentation is printed to paper.The text was updated successfully, but these errors were encountered: