mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.33k stars 32 forks source link

Markdown syntax: can we have a different flavour? #137

Closed thisismygitrepo closed 10 months ago

thisismygitrepo commented 10 months ago

I've used Marp and slidev and both tools follow a syntax where --- is the directive for new slide. In presenterm however, its like <-----!end slide ---->

IMH:

I really like presenterm and I'm wondering if it is possible to add option/ cli flag to choose syntax. I don't feel like its a low hanging fruit. The advantage would be interopability and drop-in replacement for other popular tools.

Thanks.

mfontanini commented 10 months ago

Sure, now that there's a config file this can be added as an option. So you'll enable some option and that will let you use --- to end a slide. I can add this tomorrow.

Do note that you can use this option so slide ends are implicit so that may work for you if you're using slide titles in every slide.

mfontanini commented 10 months ago

This is fixed in master. You set this in the config file or in the front matter for each presentation, the option name is end_slide_shorthand.

e.g. this presentation has 2 slides:

---
options:
    end_slide_shorthand: true
---

first slide

--------

second slide