Sha256: 586fbd0f03ac658929200373a5a25a420169797e945b5c5cedf550368ad4e003

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

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 of course 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.1 README.textile