Compare commits
1 commit
master
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
1c3d1b98c3 |
8 changed files with 9 additions and 13 deletions
14
Cargo.lock
generated
14
Cargo.lock
generated
|
@ -39,23 +39,23 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bart"
|
name = "bart"
|
||||||
version = "0.1.6"
|
version = "0.1.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3678acb7a27ff77a32f794d2d47634d0eb3a4612cfeb62f35c9f2a74f9346c60"
|
checksum = "f0f9d52a5c46e2abe28ae1c2ecdaa320c01e424c29a56acb7a6222141c78bae7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nom",
|
"nom",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bart_derive"
|
name = "bart_derive"
|
||||||
version = "0.1.6"
|
version = "0.1.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cb1b0d0b2b455346cae481cb4762e1a68965a05b07fc2a5c6857f0a57f590fdb"
|
checksum = "39fdc9035ac29aeb14993e2cdae217de7ccc9f9960eae0c5a12d541ca11c6af1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools",
|
"itertools",
|
||||||
"num",
|
"num",
|
||||||
"quote 0.3.15",
|
"quote 0.3.15",
|
||||||
"syn 0.11.11",
|
"syn 0.10.8",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -192,9 +192,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crossbeam-deque"
|
name = "crossbeam-deque"
|
||||||
version = "0.7.3"
|
version = "0.7.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285"
|
checksum = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crossbeam-epoch",
|
"crossbeam-epoch",
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
|
|
|
@ -21,8 +21,8 @@ features = ["sqlite"]
|
||||||
version = "1.4.0"
|
version = "1.4.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bart = "0.1.6"
|
bart = "0.1.4"
|
||||||
bart_derive = "0.1.6"
|
bart_derive = "0.1.4"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
clap = "2.31"
|
clap = "2.31"
|
||||||
diff = "0.1"
|
diff = "0.1"
|
||||||
|
|
|
@ -28,11 +28,7 @@ pub fn render_markdown_for_fts(src: &str) -> String {
|
||||||
|
|
||||||
for event in p {
|
for event in p {
|
||||||
match event {
|
match event {
|
||||||
// As far as I understand this is a basic
|
|
||||||
// sanitizing to prevent HTML from
|
|
||||||
// appearing in page.
|
|
||||||
Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
|
Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
|
||||||
// Footnote links maybe?
|
|
||||||
End(Tag::Link(uri, _title)) => {
|
End(Tag::Link(uri, _title)) => {
|
||||||
buf.push_str(" (");
|
buf.push_str(" (");
|
||||||
buf.push_str(&uri.replace(is_html_special, " "));
|
buf.push_str(&uri.replace(is_html_special, " "));
|
||||||
|
|
Loading…
Reference in a new issue