Project

remark

0.0
No commit activity in last 3 years
No release in over 3 years
Remark turns simple HTML documents or content in web pages to Markdown source.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.9

Runtime

~> 0.8.2
 Project 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('<h1>My document</h1><p>Some content</p>').to_markdown