Project

nwodkram

0.0
No commit activity in last 3 years
No release in over 3 years
Convert html into markdown
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.4.1
 Project Readme

Nwodkram

nwodkram (markdown in reverse) is a tool to reverse html into markdown.

Usage

The gem reopens class String and adds a to_markdown method. When valid html is given, it returns markdown. html = File.open('page.html', 'r') {|f| f.read } markdown = html.to_markdown

Use case

My use case was to migrate a blog from wordpress.com to something more civilised (and self-hosted).

Supports

tags: p, a, img, ul, ol, li, h1, h2, h3, em, strong, blockquote

rubies: tested with MRI ruby 1.8.7 and 1.9.2 (preview1)

TODO

The tool doesn't support the full markdown syntax.

If this tool gets used, I could extend it. For now, it's suffient for my limited purposes.