archive
/
md-pdf-rs
Archived
1
Fork 0

Make sciter find_all actually work

This commit is contained in:
Jake Howard 2017-09-24 16:22:56 +01:00
parent e5c3f20dd3
commit 97dc08acc5
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 5 additions and 6 deletions

8
Cargo.lock generated
View File

@ -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)" = "<none>"
"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"

View File

@ -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"

View File

@ -6,7 +6,6 @@ use config::Config;
pub fn head_cleanup(config: Config, input: String) -> Result<String, String> {
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");