class Rote::Filters::RedCloth

Page filter that converts Textile formatting to HTML using RedCloth.

Note that, although RedCloth provides partial Markdown support, it is *highly recommended* that the BlueCloth filter be applied to markdown pages instead of this one.

Public Class Methods

new(*redcloth_opts) click to toggle source

Create a new filter instance. The supplied options are passed directly to RedCloth. See RedCloth docs for a full list.

If no options are supplied, full textile support is provided.

# File lib/rote/filters/redcloth.rb, line 28
def initialize(*redcloth_opts)
  @redcloth_opts = redcloth_opts

Public Instance Methods

handler(text,page) click to toggle source
# File lib/rote/filters/redcloth.rb, line 33
def handler(text,page)
  rc =, @redcloth_opts)