mkhtml.py: writing HTML documents in Markdown
Kragen Javier Sitaker
kragen at pobox.com
Mon Jun 9 13:24:10 EDT 2008
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
More information about the Kragen-discuss
mailing list