The generated PDF from a wiki page has some page internal links to sections missing.
Steps to reproduce
- Go to https://fr.wikiquote.org/wiki/Michel_Henry
- Generate the PDF using the link "Télécharger comme PDF".
- Download and open the PDF.
- Observe that in the resulting PDF, some entries in the table of contents are not links.
Actual
These ToC entries (plus more) are not links (some problematic characters are emphasized):
- Phénoménologie matérielle, 1990
- Gabrielle Dufour-Kowalska, philosophe française (1939-2015)
- Rolf Kühn, philosophe allemand (1944- )
Expected
All ToC entries should be links.
Initial investigation
We can reproduce this by simply opening this page in a Chromium-based browser (I've tried Chrome and Brave so far), right-click, Print..., print as PDF. (BTW, there are not even any links generated when using Firefox).
There are issues with the ToC links containing accented characters and umlauts.
reduced test case wiki page.
<html> <head> <meta charset="UTF-8"> </head> <body> <ul> <li><a href="#section1Ü">Section 1 Ü</a></li> <li><a href="#section2é">Section 2 é</a></li> <li><a href="#section3(">Section 3 (</a></li> <li><a href="#section4'">Section 4 '</a></li> </ul> <div style="height: 150px"></div> <h2 id="section1Ü">Section 1 Ü</h2> Missing link <h2 id="section2é">Section 2 é</h2> Missing link <h2 id="section3(">Section 3 (</h2> Has link <h2 id="section4'">Section 4 '</h2> Has link </body> </html>
Upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=985254
