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.

1 Answer 1

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

2
  • 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
    Commented Aug 13, 2015 at 11:43
  • I added a follow-up question here: superuser.com/questions/956494/python-markdown-with-css
    – Martin
    Commented Aug 13, 2015 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.