Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Similar to HTML and Latex formatters included in RedCloth, this one allows you to convert Textile to plain text discarding the Textile syntax

branch: master
README.textile

RedCloth::Formatters::Plain

Similar to HTML and Latex formatters included in RedCloth, this one allows you to convert Textile to plain text discarding the Textile syntax.

Dependencies

This plugin only requires the RedCloth gem.

Example

RedCloth.new("p. this is *simple* _test_").to_plain

will return:

"this is simple test"

Example displaying URLs

RedCloth.new(%Q{"Please contact support":http://example.com/support}).to_plain

will return:

"Please contact support <http://example.com/support>"

Something went wrong with that request. Please try again.