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.

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

  • 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: superuser.com/questions/956494/python-markdown-with-css – Martin Aug 13 '15 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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