Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support relative file URIs in hyperlinks when using CLI #532
For example when converting the following html to a pdf, it should be possible to make the hyperlink refer to the relative URI and not the absolute URI:
What I get: "file://absolute-path/external-file.pdf"
I have tried to change the --base-url argument, but it does not remove the absolute path if I set it to ""(empty).
So I looked it up in the code, and it is fairly easy to change, but I just wanted to make sure that there is interest in including this feature. If there are indeed interest I can make a pull request.
Relative file URIs are also what Prince outputs by default.
Unfortunately, what you want is currently impossible using the CLI:
Even if these 3 choices may look strange when looked at carefully, I think that they are actually really good when they're used without thinking (and that's what most CLI users do). I don't want to change this behavior.
So you currently have to use
A solution would be to transform