Hi,
I've only recently downloaded markdown (version 1.5) so I hope I'm not
doing something silly here, but it looks like the Python version of
markdown does not escape '&' and '<' characters correctly.
I don't know if this has already been reported because the mailing list
archives are down.
>>> from markdown import markdown
>>> markdown('&')
'\n<p>&\n</p>\n\n'
>>> markdown('AT&T')
'\n<p>AT&T\n</p>\n\n'
>>> markdown('4 < 5')
'\n<p>4 < 5\n</p>\n\n'
>>> markdown('4 < 5 > 6')
'\n<p>4 < 5 > 6\n</p>\n\n'
>>> markdown('4 < 5\n > 6')
'\n<p>4 < 5\n > 6\n</p>\n\n'
>>> markdown('4 < 5\n\n > 6')
'\n<p>4 < 5\n</p>\n<p> > 6\n</p>\n\n'
'&' seems to be completely ignored.
'<' is ignored when followed by a '>' at some point within the same
paragraph.
I also tried running Python Markdown on the Perl Markdown Test Suite
(MarkdownTest_1.0) and it fails every test because of differently
formatted HTML.
Cheers, Matt
--
__
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \ w: http://www.pollenation.net
__/ \__/ e: ma...@po...
/ \__/ \ t: +44 (0)113 2252500
\__/ \__/
/ \ Any views expressed are my own and do not necessarily
\__/ reflect the views of my employer.
|