On Jun 7, 2012, at 9:18 AM, Ricardo Signes wrote:

> If I understand things correctly, then when you say L<foo> in something that
> becomes a section header, the TOC links to it by doing something morally
> equivalent to L<L<foo>|/foo>, which is obviously nuts.

Yeah.

> Restated:
> 
>  * =head2 L<bar|foo> becomes "<a id='head1_foo' href='foo'>bar</a>"
>  * the TOC links with <a href="#head1_foo"><a href='foo'>bar</a></a>
> 
> The text of the link in the TOC should be the same as the text of the thing to
> which it's linking.  So the TOC should link with:
> 
>  <a href="#head1_foo">bar</a>

Yes.

> ...and if you'd said (you can say this, right?) "L<< The B<Big> Bang|boom >>"
> then the TOC should have something like:
> 
>  <a href="#head1_boom">The <strong>Big</strong> Bang</a>
> 
> This email has received about 120s of thought, so it might be a terrible idea.
> It feels pretty sound, though.  (Oh, but I totally punted on the #-anchors
> there.  They weren't really at issue, right?)

Not sure. I would not be surprised if they were rendered as:

  <a id="head1_boom"><a href="http://search.cpan.org/perldoc?foo";>bar</a></a>

If so, it should obviously be corrected to:

  <a id="head1_boom" href="http://search.cpan.org/perldoc?foo";>bar</a>

I will update the ticket.

David


Reply via email to