I am using weasyprint 56.1 with django-weasyprint 2.1.0, with vanilla settings.
When my HTML contains an ordinary hyperlink of the form
<a href="https://example.com">my link text</a>
I want weasyprint to generate PDF that looks like
my link text
and where that text is a hyperlink to https://example.com
.
However, what I get instead is the following format:
my link text (
https://example.com
)
where both parts are hyperlinked. The link is correct and works, but I do not want the URL to show.
I could not find anything about this in the weasyprint documentation.
I just spent an hour in the weasyprint source code trying to find the spot where this formatting happens, but to no avail.
What logic is responsible for this formatting and how can I change it?