Closed Selyss closed 1 year ago
Same issue on M1 mac with wezterm
I think this issue is related to DOS "\r\n" line breaks vs Unix "\n" and slides only seem happy with the latter.
Latest slides
installed in Windows 10 using go
If I open a file with DOS line breaks "---" will not be interpreted correctly:
slides test_crlf.md
If I explicity save this file with Unix line endings it works fine
slides test_unix.md
Example files (I hope github does no line break conversion...) test_crlf.md test_unix.md
I think this issue is related to DOS "\r\n" line breaks vs Unix "\n" and slides only seem happy with the latter.
Latest
slides
installed in Windows 10 usinggo
If I open a file with DOS line breaks "---" will not be interpreted correctly:
slides test_crlf.md
If I explicity save this file with Unix line endings it works fine
slides test_unix.md
Example files (I hope github does no line break conversion...) test_crlf.md test_unix.md
Worked for me! What did you change about the files?
The only difference is that one of the files has DOS/Windows line endings (\n\r
instead of just \n
as is standard in unix). I downloaded the files (as I created them when I was at work) from my comment above just to verify that github didn't do any conversion:
user$ file test_crlf.md
test_crlf.md: ASCII text, with CRLF line terminators
user$ file test_unix.md
test_unix.md: ASCII text
I can reproduce this also with slides v0.9.0 on macOS Ventura (installed from brew slides--0.9.0.arm64_ventura.bottle.tar.gz
):
slides test_crlf.md
slides test_unix.md
If I convert test_crlf.md
using dos2unix
(which converts line endings to unix format) it will display correctly with multiple slides
I get the same behaviour with the above two files under Ubuntu 22.04.2 LTS using slides
0.9.0 installed via snap
Describe the bug Windows does not parse slide-specific text such as
---
for new slides and metadata. This issue only occurs for markdown files given in args, not for the default display with no arguments.To Reproduce Steps to reproduce the behavior:
slides example.md
Expected behavior Slides will display as normal, with any metadata hidden and slide divisions when encountering a
---
.Screenshots
As you can see, slides displays as normal, but doesn't recognize new slides and other program specific elements.
Example of metadata issue
Desktop (please complete the following information):
Additional context The program only seems to have issue with custom symbol parsing, it can display markdown as expected. Any help appreciated!