[package]
edition = "2021"
rust-version = "1.83"
name = "html2markdown"
version = "0.2.0"
build = false
exclude = [
"test-fixtures/",
"benches/compare/",
"CLAUDE.md",
"PLAN.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTML to Markdown converter using AST-to-AST transformation"
readme = "README.md"
keywords = [
"html",
"markdown",
"converter",
"commonmark",
"mdast",
]
categories = [
"parser-implementations",
"text-processing",
"web-programming",
]
license = "MIT"
repository = "https://github.com/nchapman/html2markdown-rs"
[features]
default = []
tracing = ["dep:tracing"]
[lib]
name = "html2markdown"
path = "src/lib.rs"
[[bin]]
name = "convert"
path = "src/bin/convert.rs"
[[test]]
name = "commonmark"
path = "tests/commonmark.rs"
[[test]]
name = "fixtures"
path = "tests/fixtures.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "regression"
path = "tests/regression.rs"
[[bench]]
name = "conversion"
path = "benches/conversion.rs"
harness = false
[dependencies.html5ever]
version = "0.38"
[dependencies.markup5ever]
version = "0.38"
[dependencies.markup5ever_rcdom]
version = "0.38"
[dependencies.regex]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.html2md]
version = "0.2"
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.pulldown-cmark]
version = "0.13"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"