This blog now uses markdown for both comments and blog entries. Using the python-markdown library, all comments are run through a markdown filter before being published. Of course, comments are run with safe_mode enabled, which means that they shouldn't be vulnerable to XSS attacks.

My prevous posts were written in plain HTML. I don't mind writing HTML as long as I have the html-mode for emacs; it makes the tedium of writing tags very much bearable. However, using markdown will make some things easier, such as creating a link to the markdown website every time I write markdown, rather than just once as I was likely to do in html-mode.

Anyway, this is mostly a test to make sure everything is happy and working correctly.

The actual code was pretty simple. I haven't yet vetted the mercurial repositories that I use for my website, so I'm not going to post a link to the changesets yet, but it was mostly just running the content on the object through markdown.markdown().