Repository navigation
Releases
Releases · letmutex/htmd
v0.7.0
What's Changed
- Add pad_table_cells option by @FalkWoldmann in #169
- Add opt-in bare_pre_as_code_block option by @letmutex in #170
New Contributors
- @FalkWoldmann made their first contribution in #169
Full Changelog: v0.6.1...v0.7.0
v0.6.1
v0.6.0
Breaking Changes
- DOM backend & opaque node API:
- Switched the default DOM backend to
ego-tree, which is faster than markup5ever_rcdom backend. markup5ever_rcdomis now optional behind thercdomfeature.- Replaced
markup5ever_rcdom::Nodewithhtmd::node::{Tree, Node}, and changedHtmlToMarkdown::html_to_treeto returnstd::io::Result<Tree>.
- Switched the default DOM backend to
- Unified
convertinput:- Removed
HtmlToMarkdown::tree_to_markdown. htmd::convertandHtmlToMarkdown::convertare now generic overConvertInput(strings,Tree,Node, andRc<markup5ever_rcdom::Node>withrcdom).
- Removed
- Handler &
Elementsignatures:ElementHandler::handle,Handlers::fallback, and custom handler closures now take&Elementinstead ofElementby value.Element.nodeis now&htmd::node::Node;- Removed
Element.attrsandElement.markdown_translated. - Added
Element.context: Context. Handlers::handleandHandlers::walk_childrennow accept(&Node<'_>, Context).
New Features
- Dual DOM backends (
ego-tree&rcdom): Added anego-treebackend as the default while retainingrcdomas a Cargo feature, along with ahtmd::nodeAPI for traversing and inspecting trees. - Conversion lifecycle events: Added declarative
EventSubscription/EventTypesandElementHandlerhooks. - Custom comment handling: Added
CommentHandlerandHtmlToMarkdownBuilder::comment_handler. - Context-aware translation &
Optionsergonomics: AddedContext/ContextKind(block vs. inline & literal tracking).
Fixes & Improvements
- Correctness: Massive correctness fixes for
Faithfulmode, a huge thanks to @bjones1! - Speed: Conversion is now 10% - 20% faster (the default
ego-treebackend vsrcdom/v0.5.6).
New Contributors
- @CyberShadow made their first contribution in #163
Full Changelog: v0.5.5...v0.6.0
Thank you to all contributors! To migrate from an older version, see docs/migration.md.
v0.5.6
- Preserve line breaks in code block spans
Full Changelog: v0.5.5...v0.5.6
v0.5.5
v0.5.4
v0.5.3
What's Changed
- Fix panic on multi-byte UTF-8 chars in ordered list escape by @krystophny in #72
New Contributors
- @krystophny made their first contribution in #72
Full Changelog: v0.5.2...v0.5.3
v0.5.2
v0.5.1
v0.5.0
What's Changed
- Fix tables by @bjones1 in #57
- Fix faithful serialization by @bjones1 in #58
- Enhanced
ElementHandlerAPI by @letmutex in #59 - Refactor element handlers by @letmutex in #60
- Optimize text_util by @letmutex in #61
- Refactor walk_children() by @letmutex in #62
- Rename Chain to Handlers by @letmutex in #63
- Move options from Element to Handlers by @letmutex in #64
- v0.5.0 by @letmutex in #65
Full Changelog: v0.4.0...v0.5.0