mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.01k stars 45 forks source link

Export to reveal.js #142

Closed anschmieg closed 10 months ago

anschmieg commented 10 months ago

Hi, thanks for all your hard work on PanWriter! I am experiencing some difficulty exporting to reveal.js. I could not find an option to specify this in the YAML metadata block, and it is not listed under Format in the export dialog.

More generally, I think it would be useful to have an option to specify certain arguments for a given file. Maybe this is possible by using a Lua filter?

mb21 commented 10 months ago

Hello!

That should already work, I just improved the docs on that: https://github.com/mb21/panwriter/pull/143 Does that make things clearer?

i.e. this should work:

---
title: my title
output:
  html:
    to: revealjs
---

# test

# test2
anschmieg commented 10 months ago

Amazing, that solved it! I was unable to find that anywhere, it seems to me that documentation on Pandoc is still rather scarce. Anyway, thank you!