Skip to content

Releases: soundasleep/html2text_ruby

Release list

v0.5.0

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

v0.4.0

Choose a tag to compare

@mscrivo mscrivo released this 09 Jun 22:54
06f3ebd

What's Changed

  • Fix parsing nodes with no name by @mscrivo in #15
  • Update gemspec to allow newer version of Nokogiri by @mscrivo in #17
  • Bump nokogiri from 1.11.0 to 1.16.5 by @dependabot in #34
  • Bump rake from 10.4.2 to 12.3.3 by @dependabot in #35
  • Remove unnecessary explicit receiver in Html2Text.convert by @splattael in #30
  • Add rubocop config, action and fix issues by @mscrivo in #36
  • Switch from Travis to Github actions for build, test & lint
  • Require Ruby 3.0 or higher

New Contributors

Full Changelog: 0.3.1...v0.4.0