Task lists

Adds support for [GFM task lists](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) (closes #1165).

Also fixes a bug in my list handling code from yesterday. (The bug was technically present before yesterday, but didn't actually affect anything, AFAIK.)