diff --git a/Cargo.lock b/Cargo.lock index c1ea008..7210eae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,7 +6,7 @@ dependencies = [ "include_dir 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "mktemp 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "pandoc 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", - "sciter-rs 0.4.21 (registry+https://github.com/rust-lang/crates.io-index)", + "sciter-rs 0.4.23 (git+https://github.com/RealOrangeOne/rust-sciter.git?rev=783d70d)", "serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "serde_yaml 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -363,8 +363,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "sciter-rs" -version = "0.4.21" -source = "registry+https://github.com/rust-lang/crates.io-index" +version = "0.4.23" +source = "git+https://github.com/RealOrangeOne/rust-sciter.git?rev=783d70d#783d70d8d856c361d0dabf77f6ca179ce46d0355" dependencies = [ "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", @@ -618,7 +618,7 @@ dependencies = [ "checksum redox_syscall 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)" = "8dde11f18c108289bef24469638a04dce49da56084f2d50618b226e47eb04509" "checksum rustc-demangle 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "aee45432acc62f7b9a108cc054142dac51f979e69e71ddce7d6fc7adf29e817e" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" -"checksum sciter-rs 0.4.21 (registry+https://github.com/rust-lang/crates.io-index)" = "77594d8fa0843dbcc15fc97697ad3a7b1e858d00a313bd925cac45b4f5712cdb" +"checksum sciter-rs 0.4.23 (git+https://github.com/RealOrangeOne/rust-sciter.git?rev=783d70d)" = "" "checksum serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "433d7d9f8530d5a939ad5e0e72a6243d2e42a24804f70bf592c679363dcacb2f" "checksum serde_derive 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "7b707cf0d4cab852084f573058def08879bb467fda89d99052485e7d00edd624" "checksum serde_derive_internals 0.15.1 (registry+https://github.com/rust-lang/crates.io-index)" = "37aee4e0da52d801acfbc0cc219eb1eda7142112339726e427926a6f6ee65d3a" diff --git a/Cargo.toml b/Cargo.toml index 13eb007..b8fbf00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ build = "build.rs" clap = "2.25.0" mktemp = "0.3.1" pandoc = "0.6.2" -sciter-rs = "0.4.21" +sciter-rs = { git = "https://github.com/RealOrangeOne/rust-sciter.git", rev="783d70d" } serde = "1.0.10" serde_derive = "1.0.10" serde_yaml = "0.7.1" diff --git a/src/processors/head_cleanup.rs b/src/processors/head_cleanup.rs index 040df1c..4de4f70 100644 --- a/src/processors/head_cleanup.rs +++ b/src/processors/head_cleanup.rs @@ -6,7 +6,6 @@ use config::Config; pub fn head_cleanup(config: Config, input: String) -> Result { let mut root = sciter_start(input); let mut head = get_head(&mut root); - destroy_at(&mut head, 4); // Sciter doesnt like finding this style tag for some reason destroy_matching(&mut head, "meta[content='text/css']"); destroy_matching(&mut head, "style"); destroy_matching(&mut head, "title");