Class Nanoc::Filters::RedCloth
In: lib/nanoc/filters/redcloth.rb
Parent: Nanoc::Filter

Methods

run  

Public Instance methods

Runs the content through [RedCloth](redcloth.org/). This method takes the following options:

  • `:filter_class`
  • `:filter_html`
  • `:filter_ids`
  • `:filter_style`
  • `:hard_breaks`
  • `:lite_mode`
  • `:no_span_caps`
  • `:sanitize_htm`

Each of these options sets the corresponding attribute on the `RedCloth` instance. For example, when the `:hard_breaks => false` option is passed to this filter, the filter will call `r.hard_breaks = false` (with `r` being the `RedCloth` instance).

@param [String] content The content to filter

@return [String] The filtered content

[Validate]