Something went wrong. Try again.
Markdown parser fork with extended syntax for personal use.
Something went wrong. Try again.
284 B · 13 lines
Rust
at hack
1234567891011121314use markdown::to_html;use pretty_assertions::assert_eq;
#[test]fn bom() { assert_eq!(to_html("\u{FEFF}"), "", "should ignore just a bom");
assert_eq!( to_html("\u{FEFF}# hea\u{FEFF}ding"), "<h1>hea\u{FEFF}ding</h1>", "should ignore a bom" );}