[[bench]]
harness = false
name = "conversion_benchmark"
path = "benches/conversion_benchmark.rs"
[[bench]]
harness = false
name = "micro_benchmark"
path = "benches/micro_benchmark.rs"
[[bench]]
harness = false
name = "profiling_benchmark"
path = "benches/profiling_benchmark.rs"
[dependencies.base64]
version = "0.22"
[dependencies.html-escape]
version = "0.2.13"
[dependencies.html5ever]
version = "0.36"
[dependencies.image]
default-features = false
features = ["gif", "jpeg", "png", "bmp", "webp"]
optional = true
version = "0.25"
[dependencies.markup5ever_rcdom]
version = "0.36"
[dependencies.once_cell]
version = "1.21"
[dependencies.regex]
version = "1.12"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tl]
package = "astral-tl"
version = "0.7.11"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.7"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "table"
path = "examples/table.rs"
[[example]]
name = "test_escape"
path = "examples/test_escape.rs"
[[example]]
name = "test_inline_formatting"
path = "examples/test_inline_formatting.rs"
[[example]]
name = "test_lists"
path = "examples/test_lists.rs"
[[example]]
name = "test_semantic_tags"
path = "examples/test_semantic_tags.rs"
[[example]]
name = "test_tables"
path = "examples/test_tables.rs"
[[example]]
name = "test_task_lists"
path = "examples/test_task_lists.rs"
[[example]]
name = "test_whitespace"
path = "examples/test_whitespace.rs"
[features]
default = []
inline-images = ["dep:image"]
metadata = ["dep:serde", "dep:serde_json"]
[lib]
crate-type = ["rlib"]
name = "html_to_markdown_rs"
path = "src/lib.rs"
[package]
authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["parsing", "text-processing", "web-programming"]
description = "High-performance HTML to Markdown converter using the astral-tl parser. Part of the Kreuzberg ecosystem."
documentation = "https://docs.rs/html-to-markdown-rs"
edition = "2024"
homepage = "https://github.com/Goldziher/html-to-markdown"
keywords = ["html", "markdown", "converter", "astral-tl", "doc-processing"]
license = "MIT"
name = "html-to-markdown-rs"
readme = "README.md"
repository = "https://github.com/Goldziher/html-to-markdown"
resolver = "2"
rust-version = "1.85"
version = "2.14.0"
[[test]]
name = "br_in_inline_test"
path = "tests/br_in_inline_test.rs"
[[test]]
name = "commonmark_compliance_test"
path = "tests/commonmark_compliance_test.rs"
[[test]]
name = "hocr_compliance_test"
path = "tests/hocr_compliance_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "issue_121_regressions"
path = "tests/issue_121_regressions.rs"
[[test]]
name = "issue_127_regressions"
path = "tests/issue_127_regressions.rs"
[[test]]
name = "issue_128_regressions"
path = "tests/issue_128_regressions.rs"
[[test]]
name = "issue_131_regressions"
path = "tests/issue_131_regressions.rs"
[[test]]
name = "issue_134_regressions"
path = "tests/issue_134_regressions.rs"
[[test]]
name = "issue_139_regressions"
path = "tests/issue_139_regressions.rs"
[[test]]
name = "issue_140_regressions"
path = "tests/issue_140_regressions.rs"
[[test]]
name = "issue_143_regressions"
path = "tests/issue_143_regressions.rs"
[[test]]
name = "lists_test"
path = "tests/lists_test.rs"
[[test]]
name = "preprocessing_tests"
path = "tests/preprocessing_tests.rs"
[[test]]
name = "tables_test"
path = "tests/tables_test.rs"