This PR adds a new crate for converting rustdoc output to Markdown. We're leveraging Servo's `html5ever` to parse the Markdown content, and then walking the DOM nodes to convert it to a Markdown string. The Markdown output will be continued to be refined, but it's in a place where it should be reasonable. Release Notes: - N/A
21 lines
333 B
TOML
21 lines
333 B
TOML
[package]
|
|
name = "rustdoc_to_markdown"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/rustdoc_to_markdown.rs"
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
html5ever.workspace = true
|
|
markup5ever_rcdom.workspace = true
|
|
|
|
[dev-dependencies]
|
|
indoc.workspace = true
|