Closed fl3pp closed 4 years ago
Not sure about whether we should add explicit support for UTF-8 BOM or not. UTF-8 BOM are known to cause problems, so I'm not sure whether we should "promote" them by explicitly supporting them...
@all, feedback is appreciated!
I understand what you mean and agree with you that this concern is worth thinking about before implementing.
But in my opinion a corresponding error message should be shown, explicitely dissallowing BOMs because they are not supported. Or at least mention this topic in the documentation.
Otherwise users (like me) are being confronted with a really confusing behavior.
I fixed it for myself using a small plugin
https://gist.github.com/jflepp/fb8e46369ab88907020fbd143fa2b8b5
This is for sure not the best solution, but it solves my problem for now
Hello together,
Unfortunately Pico didn't render my YAML content correctly. I was searching several hours until I found the issue in the regex:
I was able to reproduce the problem in a small script:
It seems that the regex replacement (and the markdown parsing too) is not able to handle files with UTF-8 BOM headers correctly. One should not add BOMs anyway, but many text-editor do without users knowing it.
Could you add support for BOMs?