Skip to content

v0.5.0

Latest

Choose a tag to compare

@mscrivo mscrivo released this 08 Jul 19:29
905788f

Added

  • Add a wrap_links: option to Html2Text.convert and Html2Text.new (default true); when false, hyperlinks render as text: href instead 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_link and image_text, plus unit specs for fix_newlines and replace_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 rexml dependency (#42)

Full Changelog: v0.4.0...v0.5.0