Class Nanoc::Filters::Redcarpet
In: lib/nanoc/filters/redcarpet.rb
Parent: Nanoc::Filter

@since 3.2.0

Methods

run  

Public Instance methods

Runs the content through [Redcarpet](github.com/vmg/redcarpet). This method optionally takes processing options to pass on to Redcarpet.

@overload run(content, params={})

  For Redcarpet 1.x

  @param [String] content The content to filter

  @option params [Array] :options ([]) A list of options to pass on to
    Redcarpet

  @return [String] The filtered content

@overload run(content, params={})

  For Redcarpet 2.x

  @since 3.2.4

  @param [String] content The content to filter

  @option params [Hash] :options ({}) A list of options to pass on to
    Redcarpet itself (not the renderer)

  @option params [::Redcarpet::Render::Base] :renderer
    (::Redcarpet::Render::HTML) The class of the renderer to use

  @option params [Hash] :renderer_options ({}) A list of options to pass
    on to the Redcarpet renderer

  @return [String] The filtered content

[Validate]