Replies: 2 comments
-
I made some progress towards fixing the links but I hit a wall: The Is there a way to access |
Beta Was this translation helpful? Give feedback.
-
Ok guys, check this solution I came up with. Put the following code in
It normally creates self-anchors for all headings. I modified it to append the unique file ID of each file ( Put the following code in
I also ever so slightly changed how the IDs of article titles (H1s) are generated. This is based on my own preference, but since the code above depend on it, you'll also have to redefine
Similarly, put the following code in
Let me know if this works out for you! |
Beta Was this translation helpful? Give feedback.
-
DL;DR: Need working links in print mode.
Long version:
The idea behind the "Print entire section" feature us great. I was researching it for the purpose of PDF creation where it makes it easy to use whatever PDF converter you like, even automation, in an elegant way. Unfortunately, I found out a pretty major deficiency - it keeps the links unchanged, meaning they point to pages outside the
_print
page. It doesn't make a difference when printing on paper, but when printing to PDF (which, I guess, is far more common nowadays), it means losing functionality and context. This, with the presence of broken links, makes the resulting PDF completely unfit for professional use like handing over to customers.What would it take to redo the links so that they work within the context of the monolithic
_print
page?I understand this might not be everybody's cup of tea, so it could be a configuration option.
It will require generating
id
s for headings that don't already have them. For the anchor links, simply dropping the URL part preceding the hash sign won't do, as multiple of the original pages might use the sameid
s. These will have to be replaced by autogenerated UUIDs or prefixed/suffixed with something to make them unique.Beta Was this translation helpful? Give feedback.
All reactions