Subject: | MultiMarkdown unexpected rendering in code span within footnote |
Date: | Wed, 06 Aug 2008 11:41:37 -0400 |
To: | Bugs in Text-Markdown via RT <bug-Text-Markdown [...] rt.cpan.org> |
From: | J Chapman Flack <jflack [...] math.purdue.edu> |
Some special characters are rendered unexpectedly if they appear
within `backticks` in the text of a footnote. 'Unexpectedly' in this
context means 'as 32 hexadecimal digits':
Test code:
use Text::MultiMarkdown;
my $m = Text::MultiMarkdown->new;
my $in = <<XYZZY;
I am a sentence containing a footnote.[^really]
[^really]: Here is the footnote, which contains a `*` and a `_` and even
a `\*` and a `\_` and a `\\`.
XYZZY
my $out = $m->markdown($in);
print $out;
Output:
<p>I am a sentence containing a footnote.<a href="#really" id="freally"
class="footnote">1</a></p>
<div class="footnotes">
<hr />
<ol>
<li id="really"><p>Here is the footnote, which contains a
<code>3389dae361af79b04c9c8e7057f60cc6</code> and a
<code>b14a7b8059d9c055954c92674ce60032</code> and even
a <code>3389dae361af79b04c9c8e7057f60cc6</code> and a
<code>b14a7b8059d9c055954c92674ce60032</code> and a
<code>28d397e87306b8631f3ed80d858d35f0</code>.<a href="#freally"
class="reversefootnote"> ↩</a></p></li>
</ol>
</div>
Version tested: 1.0.19
Chapman Flack
mathematics
Purdue