maaslalani / slides

Terminal based presentation tool
http://maaslalani.com/slides/
MIT License
10.08k stars 278 forks source link

Metadata breaks when `paging` is just `%d / %d` #254

Open franalbani opened 1 year ago

franalbani commented 1 year ago

Description

Metadata gets interpreted as a slide when the paging field starts directly with %d (and other chars).

How to Reproduce

  1. Put this at the top of some p.md file:
    ---
    author: You
    date: 2023 07 06
    paging: %d / %d
    ---
  2. Save it and run it with slides p.md
  3. You should see author: You date: 2023 07 06 paging: %d / %d as the first slide, and the default Slide 1 / 1 at the bottom.
franalbani commented 1 year ago

workaround: use double-quotes: "%d / %d"