An HTML-to-markdown conversion helper for Ruby This is rewrite in ruby from PHP library (https://github.com/thephpleague/html-to-markdown).
Add this line to your application's Gemfile:
gem 'html2markdown'
And then execute:
$ bundle
Or install it yourself as:
$ gem install html2markdown
html = open(url).read
Html2Markdown.convert(html)