Markdown with YAML rendering doesn't handle UTF8 BOM
If you check in Markdown file with a UTF-8 BOM marker, it does not render a YAML header as a code block.
Steps to reproduce
- Create a Markdown file with a YAML header
- Make sure it has a BOM (using Notepad++ for example)
- Check it in
- Preview it
What is the current bug behavior?
The BOM causes it not to correctly identify the YAML header and format at it.
What is the expected correct behavior?
It would treat files with and without BOM identically.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com.