joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

How to turn on pandoc extension? #99

Closed pearlzli closed 4 years ago

pearlzli commented 4 years ago

I'd like pandoc to parse task lists, e.g.

- [ ] This task is incomplete
- [x] This task is complete

At the moment, when I run pandoc (Markdown to HTML) from pandoc-mode, these just get parsed as text, rather than turned into checkboxes. My understanding is that this requires the task_lists pandoc extension. Is there a way to turn this on in pandoc-mode? I wasn't able to find it in the options menu, nor did I see a way to do it using customize-group - though I did see settings for "pandoc extension active/inactive marker".

My apologies if this is something documented somewhere that I've just missed... Thanks!

joostkremers commented 4 years ago

In the pandoc-mode menu (hydra), when you select O: Output format, there should be an option X: Extensions at the bottom. That should give you a list of extensions, with the ones that are active checked. You can toggle an extension by typing its number and then pressing t.

HTH

pearlzli commented 4 years ago

I think my eyes completely skipped over that in the menu. Thanks so much for the quick response!

joostkremers commented 4 years ago

You're welcome. Glad I could help. :-)