-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Keep relative links with rel="relative" attribute #1728
Conversation
Please note that I was unable to run the test suite as described in the documentation.
|
Hello, To install things in an editable way without setup.py, you need pip >= 21.3. |
bac8400
to
1b470dc
Compare
Digging it seems like this should be parameterized in a way. We probably don't want to change the default behavior. I looked into adding a new commandline flag for this, but forwarding that flag to the place where it's needed seems to be a nightmare. While trying that, I discovered the special handling for attachments using So I changed the PR to not resolve relative links when they have a I've now installed Python 3.10 and are using pip 22.2.1, but the
It appears that there are other system dependencies that I do not have installed. |
Hi! Thanks a lot for the pull request.
This problem is complex, and it could be a good idea to discuss about the problem and find a "good" solution before trying to solve it with code 😁️. A very "good" way to solve this would be:
The current PR breaks tests (but I think that it’s not intended), and the We added the support Another solution would be to support an HTML It could be useful to see what other HTML-to-PDF tools do. Prince seems to have a non-standard So… Before solving this problem, it could be useful to take some time to find what’s done by the other tools, what’s been proposed/accepted/rejected by the specifications, and what could give users a large panel of possibilities without impacting the current behavior. It may take some time, it can definitely be frustrating 😀️, but it’s a good solution to get nice, solid, useful and maintainable features. Technically, the CSS property seems to be a really good idea, even better that the good HTML attribute idea. But it’s not included (or even mentioned) in any standard as far as I can tell, and that’s generally a sufficient reason to reject the solution. We’ll probably have to find something better than this…
Following the installation steps should be enough. GObject is provided by the GTK installer. |
Yeah, I see where you are coming from. Thanks for the detailed response, maybe I'll find the time to look into this. |
Don’t hesitate to open a new pull request if you find time to work on this! 💜 |
This allows me to link to other PDFs with a relative link without fiddling with the base URL. See #532 for details.