maaslalani / slides

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

Slide delimiter not working as expected #207

Closed srikkant closed 1 year ago

srikkant commented 1 year ago

Describe the bug --- does not split the content into multiple slides. Instead, I see the content like the screenshot below. I see ------ where slide must have ended

Expected behavior The content should be separated into different slides.

Screenshots This is what I see when I open slides. image

Desktop (please complete the following information):

Additional context Installed through go install on 16th January.

chrisvanmeer commented 1 year ago

Could you provide a raw snippet of your markdown file?

srikkant commented 1 year ago

Yup, I just used the example here in this repo - https://github.com/maaslalani/slides/blob/main/examples/slides.md

maaslalani commented 1 year ago

@srikkant I have a suspicion that this might be due to line endings and the differences on MacOS vs Windows, can you try two things:

  1. Create a slides file from scratch so that it uses line endings for windows
  2. Run: curl https://raw.githubusercontent.com/maaslalani/slides/main/examples/slides.md | slides so that the line endings do not change
srikkant commented 1 year ago

@maaslalani Thanks a ton! You were absolutely correct. FYI, added a editorconfig to my project root with the correct line endings and it all works beautifully.
Also, came to this project through your talk at neovimconf. Having a lot of fun trying out the tools you have worked on, great job and thanks for all of those as well!

maaslalani commented 1 year ago

@srikkant Awesome! Glad to hear this! Thank you so much ❤️