Coder Social home page Coder Social logo

clothred's Introduction

ClothRed HTML 2 Textile converter

What it is

A library to convert HTML into Textile markup for use, for example, with RedCloth.

Requirements

All you need is Ruby.

Get it

Available as a gem on RubyForge: gem install ClothRed

Or download from RubyForge: rubyforge.org/frs/?group_id=3427

Or get the source: svn checkout svn://viewvc.rubyforge.mmmultiworks.com/var/svn/clothred

Bugfixes

Documentation is now generated on install time by RubyGems.

Features

This is alpha software, and only a few Textile rules have been implemented yet:

* font markup and weight (<b>, <strong>, ...)
* text formatting (<sub>, <sup>, <ins>,<del>)
* Support for headings
* Support for paragraphs and <blockquote>
* Support for Textile entities
* HTML is being escaped into UTF-8 via Ruby's CGI Library. This is the very last step in the process.

Usage

require ‘clothred’

text = ClothRed.new(“Bold HTML!”) text.to_textile

Get Help

Feel free to contact me, or peruse the homepage.

* http://clothred.rubyforge.org/
* http://rubyforge.org/projects/clothred/

Contributers:

Adriano Ferreira (patch + test for heading-translation)

clothred's People

Watchers

Joshua Siler avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.