Sha256: 7fd2d6250edf634cb6359b12dc308c11ea544a20f3dcd83d0bd07bddaf8d000d

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

**WARNING:** This project is untested with Ruby 1.9.

h2. 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.

h3. Dependencies

This plugin does only require the RedCloth gem.

h3. Example

<code>
  RedCloth.new("p. this is *simple* _test_").to_plain
</code>

will return:

<code>
  "this is simple test"
</code>

h3. Example displaying URLs

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

will return:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
red_cloth_formatters_plain-0.2.0 README.textile