Smileyt / python-markdown2

Automatically exported from code.google.com/p/python-markdown2
Other
0 stars 0 forks source link

Escaping _ in footnotes does not work #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using markdown2 1.0.1.12, with the footnotes extensions enabled, escaping 
underscores (_) in a 
footnote leaves an MD5 hash in its place.

Running the following through markdown2:
{{{
memcpy_from_tvm

Testing[^1], more testing [^2], more[^3].

[^1]: memcpy_from_tvm
[^2]: `memcpy_from_tvm`
[^3]: memcpy\_from\_tvm
}}}

using with and without code-friendly
{{{
markdown2 -x footnotes  md5_uh.markdown
markdown2 -x footnotes -x code-friendly md5_uh.markdown
}}}

Generates the following html for the footnotes that use escapes:
{{{
<p>memcpymd5-b14a7b8059d9c055954c92674ce60032frommd5-
b14a7b8059d9c055954c92674ce60032tvm&nbsp;<a href="#fnref-3" 
class="footnoteBackLink" 
title="Jump back to footnote 3 in the text.">&#8617;</a></p>
}}}

with code-friendly turned on the first footnote correctly does not generate 
<em>.

Original issue reported on code.google.com by cljacob...@gmail.com on 2 Jul 2009 at 2:12

GoogleCodeExporter commented 8 years ago
Test case added in r204

Original comment by tre...@gmail.com on 2 Jul 2009 at 6:31

GoogleCodeExporter commented 8 years ago
Fixed in r205. Thanks for the bug!

target release: 1.0.1.14

Not sure when I'll kick out another release. let me know if not having an 
explicit
release with this fix is a problem for you.

Original comment by tre...@gmail.com on 2 Jul 2009 at 6:39