feat: support standalone HTML documents
XI
2mo ago+287+287+012345678901234567890123456789-46-46-01234567890123456789
Summary
Closes #52.
- Add standalone HTML detection from
<!doctype html>or an<html>root, including HTML exports saved with a.docextension. - Reuse the EPUB HTML-to-model walker for headings, formatting, links, tables, lists, CSS visibility, and external images.
- Treat HTML void elements such as unclosed
<meta>and<img>as empty elements in the shared DOM parser. - Expose
html/.html/.htmthrough the Rust, Node, Python, and WASM APIs and update docs/tests. - MHTML remains out of scope for this change.
Validation
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --lockednpm testpython -m unittest discover -s python/testsnode --test wasm/test.mjs
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.