Markdown parser fork with extended syntax for personal use.
at main 13 lines 284 B view raw
1use markdown::to_html; 2use pretty_assertions::assert_eq; 3 4#[test] 5fn bom() { 6 assert_eq!(to_html("\u{FEFF}"), "", "should ignore just a bom"); 7 8 assert_eq!( 9 to_html("\u{FEFF}# hea\u{FEFF}ding"), 10 "<h1>hea\u{FEFF}ding</h1>", 11 "should ignore a bom" 12 ); 13}