0

How can I make this:

- [ ] check
- [x] box

render checkboxes, like in GFM? I think the output is something like

<input type="checkbox" disabled> check
<input type="checkbox" disabled checked> box

.

I don't want to use org-mode. I know there is gfm-mode, and I saw this Gist, which shows how to use pandoc to also get GFM-style markdown. However, none of them seems to support checkboxes, unless I am doing something wrong.

Martin
  • 115
  • 5

1 Answers1

0

I got it to work with Python Markdown and Markdown Checklist:

markdown_py -x toc -x markdown_checklist.extension -x smarty foobar.md > foobar.html

Martin
  • 115
  • 5
  • As you see, I also wanted to have a TOC. Actually, I am still missing the last piece: CSS styling. Pandoc gives me CSS styling and TOC with `pandoc -c ~/.emacs.d/github-pandoc.css --from markdown_github -t html5 --highlight-style pygments --standalone --smart`, but I found no way to render checkboxes. Python Markdown gives me TOC and checkboxes, but no styling. – Martin Aug 13 '15 at 11:43
  • I added a follow-up question here: http://superuser.com/questions/956494/python-markdown-with-css – Martin Aug 13 '15 at 12:08