Re: mkhtml.py: writing HTML documents in Markdown

Kragen Javier Sitaker <[email protected]>
Newsgroups gmane.culture.people.kragen.discuss,gmane.text.markdown.general,gmane.text.markdown.general
Message-ID <[email protected]>
On Sat, 7 Jun 2008 22:34:30 -0400, Waylan Limberg wrote:
> Well, first of all, he's using an old version of Python-Markdown.

Yes, 1.4-2, the version that's in Debian Etch.  System administration
is not really a favorite hobby of mine; I tend to stick with the
versions of things in my distribution unless I have a good reason to
upgrade.

> The first line of his `render` function gives it away (due to the
> change in 1.7 to all-unicode -- you generally don't pass unicode
> text to str())
> 
>         body = str(markdown.Markdown(text))
> 
> Just use the wrapper (all lowercase in any version):
> 
>         body = markdown.markdown(text)

Thanks!

Kragen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.