Doctave / doctave

A batteries-included developer documentation site generator
https://cli.doctave.com
MIT License
566 stars 32 forks source link

First headline is not recognized when File encoding is UTF-8-BOM #41

Open CleanCodeDeveloper opened 2 years ago

CleanCodeDeveloper commented 2 years ago

First headline is not recognized when File encoding is UTF-8-BOM image

Works perfect after changing encoding to UTF-8 image

datdenkikniet commented 2 years ago

Seems like the library must explicitly account for the existence of this BOM codepoint. There is some precedent for doing exactly this, and it doesn't seem too difficult: https://github.com/alexcrichton/toml-rs/pull/75/

I'm guessing this should be fixed in doctave-markdown