Skip to content
HTML to Markdown converter
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
spec
.rspec
Gemfile
Gemfile.lock
LICENSE
README.markdown
Rakefile
remark.gemspec

README.markdown

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('<h1>My document</h1><p>Some content</p>').to_markdown
Something went wrong with that request. Please try again.