add bidi via forked pulldown-cmark

This commit is contained in:
Trinity Pointard
2020-12-27 21:02:37 +01:00
parent d6b5b9a721
commit 6187c62cb3
3 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -30,4 +30,5 @@ version = "0.4"
[dependencies.pulldown-cmark]
default-features = false
version = "0.8.0"
git = "https://git.joinplu.me/Plume/pulldown-cmark"
branch = "bidi-plume"
+2 -2
View File
@@ -470,11 +470,11 @@ mod tests {
fn test_inline() {
assert_eq!(
md_to_html("# Hello", None, false, None).0,
String::from("<h1>Hello</h1>\n")
String::from("<h1 dir=\"auto\">Hello</h1>\n")
);
assert_eq!(
md_to_html("# Hello", None, true, None).0,
String::from("<p>Hello</p>\n")
String::from("<p dir=\"auto\">Hello</p>\n")
);
}
}