Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
link containing pod is misparsed in some cases #4929
Here's an example:
L<It has pod|#Has C<pod>>
The parser decides that the _first_ ">" ends the link, and that the second ">" is a piece of plain text, which is clearly wrong.
Note that writing this as L<<...>> doesn't fix the problem.
The parser does get this right if there is no explicit link text:
IMO it looks like both of them are wrong but for different reasons
=pod L<#Has C<pod>>
The L<> formatting code without a '|' should not contain a C<> formatting
On Sat, Dec 26, 2015 at 9:12 AM Dave Rolsky <firstname.lastname@example.org>
On Fri Dec 25 19:12:14 2015, email@example.com wrote:
I disagree. When L<> contains no '|' you're saying that this is the text you want shown for the link and the link itself as well. It seems like any text to be displayed should be treated as Pod, not something special.
FWIW, it seems like in Perl 5 this does work more or less like that. The text inside "L<<test C<pod>>>" is treated as Pod, not parsed simply as plain text.