Added
- Add a
wrap_links:option toHtml2Text.convertandHtml2Text.new(defaulttrue); whenfalse, hyperlinks render astext: hrefinstead of markdown-style[text](href). Only affects<a href>links — images and named anchors keep their[bracketed]format (#40, thanks @gusrub!) - Specs covering subclass overrides of
prefix_whitespace,suffix_whitespace,iterate_over,wrap_linkandimage_text, plus unit specs forfix_newlinesandreplace_entities(#41)
Changed
- Require Ruby 3.3+, since all earlier Rubies are EOL; CI now tests Ruby 3.3, 3.4 and 4.0 (#42)
- Reduce object allocations in
iterate_over(2.1x fewer) for ~1.6x faster conversion of large documents (#41) - Update development dependencies (rubocop 1.88, nokogiri 1.19 in the lockfile), removing the transitive
rexmldependency (#42)
Full Changelog: v0.4.0...v0.5.0