Subject: | Link id mismatch between h1 and anchor for complex cases |
I noticed this issue on metacpan:
https://github.com/CPAN-API/cpan-api/issues/147
Pod section links with certain characters aren't always the same
between the id of the h1 and the href that points to it.
Here is an example from perlpodspec:
Pod:
L</"About LE<lt>...E<gt> Codes">
=head1 About LE<lt>...E<gt> Codes
Html:
<a href="#About-L-Codes">
<h1 id="About-L...-Codes">About L<...> Codes</h1>
Attached is a patch to the tests that demonstrates the failure
(it's much easier to see if you use Test::Differences::eq_or_diff).
It appears that the index at the top matches the h1 (not the a).
So the link from the index works, but the one mid-document does not.
I don't have the tuits to track down the source of the issue...
Hopefully it will be easier for someone more familiar with the project.