Smileyt / python-markdown2

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

Backslash-escapes aren't being handled properly #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://daringfireball.net/projects/markdown/syntax.php#backslash

>>> from markdown2 import markdown
>>> markdown(r'\`This should not be in code.\`')
u'<p>\\<code>This should not be in code.\\</code></p>\n'

That is wrong.

c.f. "[Python-markdown-discuss] Escape character and backtick bug." discussion

Original issue reported on code.google.com by tre...@gmail.com on 16 Feb 2008 at 1:27

GoogleCodeExporter commented 8 years ago
test cases added in r123

Original comment by tre...@gmail.com on 3 Mar 2008 at 8:53

GoogleCodeExporter commented 8 years ago
fixed in r125.

I've also added a TODO (see TODO.txt) to discuss some of the edge cases of
backslash-escape rendering that the Markdown syntax (as described on
daringfireball.net) isn't clear on. I believe I'm following what PHP Markdown 
does now.

Original comment by tre...@gmail.com on 3 Mar 2008 at 9:00