From 6187c62cb3d93a4cd1b15f53a8011b94bc45bac6 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Sun, 27 Dec 2020 21:02:37 +0100 Subject: [PATCH] add bidi via forked pulldown-cmark --- Cargo.lock | 6 +++--- plume-common/Cargo.toml | 3 ++- plume-common/src/utils.rs | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90c4b1e4..ab0c2d7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2600,7 +2600,7 @@ dependencies = [ "hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", "openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)", - "pulldown-cmark 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pulldown-cmark 0.8.0 (git+https://git.joinplu.me/Plume/pulldown-cmark?branch=bidi-plume)", "regex-syntax 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", "rocket 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2771,7 +2771,7 @@ dependencies = [ [[package]] name = "pulldown-cmark" version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" +source = "git+https://git.joinplu.me/Plume/pulldown-cmark?branch=bidi-plume#f485d6bf18921277f493e1300e160b07e3756c3b" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4885,7 +4885,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" "checksum proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)" = "beae6331a816b1f65d04c45b078fd8e6c93e8071771f41b8163255bbd8d7c8fa" "checksum publicsuffix 1.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "3bbaa49075179162b49acac1c6aa45fb4dafb5f13cf6794276d77bc7fd95757b" -"checksum pulldown-cmark 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8" +"checksum pulldown-cmark 0.8.0 (git+https://git.joinplu.me/Plume/pulldown-cmark?branch=bidi-plume)" = "" "checksum quick-error 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" "checksum quick-xml 0.12.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1d8065cbb01701c11cc195cde85cbf39d1c6a80705b67a157ebb3042e0e5777f" "checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" diff --git a/plume-common/Cargo.toml b/plume-common/Cargo.toml index 05480410..eb594a48 100644 --- a/plume-common/Cargo.toml +++ b/plume-common/Cargo.toml @@ -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" diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index a51b7c15..7ef3a43a 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -470,11 +470,11 @@ mod tests { fn test_inline() { assert_eq!( md_to_html("# Hello", None, false, None).0, - String::from("

Hello

\n") + String::from("

Hello

\n") ); assert_eq!( md_to_html("# Hello", None, true, None).0, - String::from("

Hello

\n") + String::from("

Hello

\n") ); } }