Project

pink_shirt

0.0
No commit activity in last 3 years
No release in over 3 years
Converts Html to Textile, or as some say 'html2textile', it's built on nokogiri
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Pink Shirt

wash out all that RedCloth

It reverses the HTML back into textile

Usage

text =  "This is *my* text."
html = RedCloth.new(text).to_html
same = PinkShirt.new(html).to_textile
same #=> "This is *my* text."

Motivation

I had a problem: some html needed to be textile

None of the available options could get back to exactly where you started.
They weren’t ‘reversable’.

I learned a lot by reading other’s who went before.
I’ve looked at: html2texile
I’ve looked at: clothred
I’ve looked at: a deeply buried module in humpyard

This library still has some problems with whitespace management, but the majority of the the tags convert.

It’s based around textile-spec
and built to produce mirror images of html produced by
RedCloth