Subject: | Bug: E<lt> results in '<' instead of '<' |
Date: | Wed, 2 Mar 2016 14:59:11 +0100 |
To: | bug-Pod-Markdown [...] rt.cpan.org |
From: | Andreas Boesen <boesen [...] belwue.de> |
Hi,
there is a bug in Pod::Markdown v3.003 that results in 'E<lt>' being
substituted with '<' instead of '<'.
One can trigger the bug by creating a pod file (see snip below) and
using the commandline interface `pod2markdown file.pod`.
<snip file.pod>
=head1 AUTHOR
Foo Bar E<lt>foo@bar.comE<gt>
=cut
</snap>
The output is:
<snip `pod2markdown file.pm > output.md`>
# AUTHOR
Foo Bar <foo@bar.com>
</snip>
I would expect that 'E<lt>' is replaced by '<' in the .md file because
I'm not aware that HTML entities belong into a markdown file because
markdown is obviously not html. :-)
Initially I created a Bugreport[1] in Minilla[2] and got pointed to the
Changelog[3] of Pod::Markdown v3.000.
I honestly do not fully understand the Issue on stackoverflow.com[4]
because if you for example want to display a markdown file on a website
(like github/gitlab/...) the software running the website (i.e. gitlab)
should do the job ob parsing the markdown file correctly and substitute
'<' by '<'.
Also just replacing '<' with '<' seems a bit inconsistent to me
because the '>' is not replaced. But to me it seems that putting HTML
entities into markdown files is not something desirable.
[1] <https://github.com/tokuhirom/Minilla/issues/186>
[2] <http://search.cpan.org/~tokuhirom/Minilla-v3.0.1/lib/Minilla.pm>
[3] <https://metacpan.org/source/RWSTAUNER/Pod-Markdown-3.000/Changes>
[4]
<https://stackoverflow.com/questions/28496298/escape-angle-brackets-using-podmarkdown>
Also if I use pandoc (<http://pandoc.org>) on output.md (attached file)
it does NOT recognise that it is an email address:
<snip `pandoc -f markdown -t html output.md`>
<h1 id="author">AUTHOR</h1>
<p>Foo Bar <foo@bar.com></p>
</snap>
If you replace the '<' in the attached output.md pandoc recognises
the email address and sets an anchor (`<a href="mailto:...`).
Distribution name and version: Pod-Markdown-3.003.tar.gz
Perl Version: This is perl 5, version 22, subversion 1 (v5.22.1) built
for x86_64-linux-thread-multi
Operating System vendor and version: Linux $Hostname 4.4.1-2-ARCH #1 SMP
PREEMPT Wed Feb 3 13:12:33 UTC 2016 x86_64 GNU/Linux
Best regards,
Andreas
--
Andreas Boesen, BelWü-Koordination, Universität Stuttgart
Industriestr. 28, 70565 Stuttgart
Tel. 0711/685-65750 - Fax 0711/6788363
boesen@belwue.de - http://www.belwue.de
~cd in and find out
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.