MultiMarkdown renders 128-bit hash in code span within footnotes #5

Open
dandv opened this Issue Aug 25, 2009 · 2 comments

Comments

Projects
None yet
2 participants
@dandv
Contributor

dandv commented Aug 25, 2009

Date:   Wed, 06 Aug 2008 11:41:37 -0400
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">&#160;&#8617;</a></p></li>

</ol>
</div>

Version tested: 1.0.19


Chapman Flack
mathematics
Purdue

I committed a test for this:

http://github.com/bobtfish/text-multimarkdown/blob/master/t/36footnotes.t

@bobtfish

This comment has been minimized.

Show comment Hide comment
@bobtfish

bobtfish Aug 25, 2009

Owner

Can we get this into the .text test suite? Also, can we get a babelmark link, where else is this bug?

Owner

bobtfish commented Aug 25, 2009

Can we get this into the .text test suite? Also, can we get a babelmark link, where else is this bug?

@bobtfish

This comment has been minimized.

Show comment Hide comment
@bobtfish

bobtfish Aug 26, 2009

Owner

This is fixed and shipped in 1.0.27, but I'd still like a test in the .mdtest suites.

Owner

bobtfish commented Aug 26, 2009

This is fixed and shipped in 1.0.27, but I'd still like a test in the .mdtest suites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment