Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singpolyma/html2markdown
Convert HTML to Markdown in ruby
https://github.com/singpolyma/html2markdown
Last synced: 3 months ago
JSON representation
Convert HTML to Markdown in ruby
- Host: GitHub
- URL: https://github.com/singpolyma/html2markdown
- Owner: singpolyma
- License: isc
- Created: 2010-07-23T21:18:29.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-28T16:39:55.000Z (over 14 years ago)
- Last Synced: 2024-05-01T22:09:09.225Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 181 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
This is just a small piece of ruby code that turns HTML into Markdown-compatible text.
It is based on Nokogiri, and supports certain features of HTML5 (such as the effect sections have on headings).
Example:
HTML2Markdown.new('
test
').to_s