Doctave/doctave

Page title is not parsed when file contains Windows line endings

ciwchris opened this issue · 4 comments

When generating a new Doctave site on Windows, doctave init, the Examples page is generated with Windows line endings. These line endings prevent the title from being parsed by Doctave and instead are included as markdown content, as if it were just markdown content. The same issue occurs when generating new files on Windows, because they also contain Windows line endings. After changing the files to Unix line endings then the title is parsed by Doctave and the page's title is displayed as expected.

Screenshot 2021-10-12 at 11-54-14 examples

Thank you Chris for such a detailed bug report! I'm going to dig into this today - my guess is that this should be a reasonably straightforward fix in the frontmatter parser.

Unfortunately as I started working on this and pushed a test to verify the bug, GitHub decides to have an Actions outage for Windows specifically:

Will keep an eye on when this clears up.

I'm going to create a new 0.2.1 release shortly. This bug should be fixed in that one.

Thank you again for reporting the issue!

Works perfect. Thanks! 🎉