This commit is contained in:
Lukas Stancik
2026-04-04 09:40:28 +02:00
commit 5d3afabd24
218 changed files with 82634 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
use 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"
);
}