class Strelka::CMS::PageFilter::Textile

An abstract base class for page filters in the LAIKA documentation system.

Public Instance Methods

process( source, page ) click to toggle source

Process the page's source with the filter and return the altered content.

# File lib/strelka/cms/pagefilter/textile.rb, line 11
def process( source, page )
        formatter = RedCloth::TextileDoc.new( source )
        formatter.hard_breaks = false
        formatter.no_span_caps = true

        return formatter.to_html
end