Shallow clone of https://github.com/wooorm/markdown-rs
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user