Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

HTML to Markdown converter

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 remark.gemspec

Remark — HTML→Markdown tool

Remark parses HTML and delivers proper Markdown.

$ [sudo] gem install remark


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