https://github.com/mislav/remark
HTML to Markdown converter
https://github.com/mislav/remark
Last synced: 10 months ago
JSON representation
HTML to Markdown converter
- Host: GitHub
- URL: https://github.com/mislav/remark
- Owner: mislav
- License: mit
- Created: 2009-06-23T16:25:08.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2012-11-27T15:53:02.000Z (over 13 years ago)
- Last Synced: 2025-04-11T15:55:10.902Z (about 1 year ago)
- Language: Ruby
- Size: 132 KB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
- awesome-markdown - remark :octocat: - HTML to Markdown converter in Ruby (Convert to Markdown Tools / Hypertext Markup Language (HTML) to Markdown)
README
Remark — HTML→Markdown tool
===========================
Remark parses HTML and delivers proper Markdown.
$ [sudo] gem install remark
Usage
-----
From command-line:
remark path/to/file.html
or by STDIN:
echo "..." | remark
You can try feeding it a document from the web:
curl -s daringfireball.net/projects/markdown/basics | remark > result.markdown
See how it does.
If you've cloned the repository, invoke the binary like this:
ruby -Ilib -rubygems bin/remark spec/sample.html
And this is how you use it from Ruby code:
Remark.new('
My document
Some content
').to_markdown