While using slidedeck on Windows x64, editing slides.md with notepad++, the slides were not rendered correctly with slidedeck render, output was always:
Parsed slide deck settings, and found setting for: author, title, contact.
Compiled 1 slides.
although I had more slides. The resulting index.html also was broken (missing and mixing slides and content).
This pull request checks for Dos\Windows line encoding \r\n and converts it to UNIX style \n directly after reading slides.md, as the subsequent detection of slides in slides.md is based on \n newlines.
Check and convert EOL encoding
While using slidedeck on Windows x64, editing
slides.md
with notepad++, the slides were not rendered correctly withslidedeck render
, output was always:although I had more slides. The resulting
index.html
also was broken (missing and mixing slides and content).This pull request checks for Dos\Windows line encoding
\r\n
and converts it to UNIX style\n
directly after readingslides.md
, as the subsequent detection of slides inslides.md
is based on\n
newlines.