Class: Strelka::CMS::PageFilter::Textile

Inherits:
Strelka::CMS::PageFilter
  • Object
show all
Defined in:
lib/strelka/cms/pagefilter/textile.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#process(source, page) ⇒ Object

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



11
12
13
14
15
16
17
# 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