diff options
| author | sigoden <sigoden@gmail.com> | 2024-09-06 08:08:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-06 08:08:55 +0800 |
| commit | 555f4f5d128d018912144b0e7f2b3a50223bf713 (patch) | |
| tree | 46c72e49bb34817fcee1bece140831c11b1580e0 /Cargo.lock | |
| parent | 791b6150afd626baabc2d71acc1dc3dcb70ad4d0 (diff) | |
| download | aichat-555f4f5d128d018912144b0e7f2b3a50223bf713.tar.gz | |
feat: better html to markdown converter (#840)
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 50 |
1 files changed, 36 insertions, 14 deletions
@@ -67,7 +67,7 @@ dependencies = [ "futures-util", "hmac", "hnsw_rs", - "html2text", + "html_to_markdown", "http", "http-body-util", "hyper", @@ -1153,19 +1153,6 @@ dependencies = [ ] [[package]] -name = "html2text" -version = "0.12.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c66ee488a63a92237d5b48875b7e05bb293be8fb2894641c8118b60c08ab5ef" -dependencies = [ - "html5ever", - "markup5ever", - "tendril", - "thiserror", - "unicode-width", -] - -[[package]] name = "html5ever" version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1180,6 +1167,18 @@ dependencies = [ ] [[package]] +name = "html_to_markdown" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e608e8dd0939bfb6b516d96a5919751b835297a02230aecb88d2fc84ebebaa8a" +dependencies = [ + "anyhow", + "html5ever", + "markup5ever_rcdom", + "regex", +] + +[[package]] name = "http" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1522,6 +1521,18 @@ dependencies = [ ] [[package]] +name = "markup5ever_rcdom" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edaa21ab3701bfee5099ade5f7e1f84553fd19228cf332f13cd6e964bf59be18" +dependencies = [ + "html5ever", + "markup5ever", + "tendril", + "xml5ever", +] + +[[package]] name = "matchers" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -3914,6 +3925,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec107c4503ea0b4a98ef47356329af139c0a4f7750e621cf2973cd3385ebcb3d" [[package]] +name = "xml5ever" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69" +dependencies = [ + "log", + "mac", + "markup5ever", +] + +[[package]] name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" |
