|
From: Yuri T. <yu...@si...> - 2007-03-18 12:15:05
|
Thanks for reporting this. This appears to be a side-effect of the
header pre-processor, which inserts an extra \n after every line that
starts with a #, to make it possible to later have each header in a
block by itself. Making the html preprocessor run first seems to fix
the problem (see the self.preprocessor array set on line 292). I will
put a new version up after running more tests and fixing a few other
issues that have been reported.
- yuri
On 3/18/07, Erick Tryzelaar <ida...@us...> wrote:
> Hello,
>
> I noticed that python-markdown has some problems parsing code with a '#'
> inside of a html tag:
>
> > python -c 'import markdown; print
> [markdown.markdown("<pre>\n#!/usr/bin/python\nhello</pre>")]'
> ['\n<pre>\n#!/usr/bin/python\n\nhello</pre>\n\n\n\n']
>
> You should notice that there are some extra newline inserted after the
> line with the '#'. I would expect it to be this:
>
> ['\n<pre>\n#!/usr/bin/python\nhello</pre>\n\n\n\n']
>
> -e
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Python-markdown-discuss mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss
>
--
Yuri Takhteyev
UC Berkeley School of Information
http://www.freewisdom.org/
|