Class: EnkiFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/enki_formatter.rb

Class Method Summary collapse

Class Method Details

.format_as_xhtml(text) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/enki_formatter.rb', line 3

def format_as_xhtml(text)
  Lesstile.format_as_xhtml(
    text,
    :text_formatter => lambda {|text| RedCloth.new(CGI::unescapeHTML(text)).to_html},
    :code_formatter => Lesstile::CodeRayFormatter
  )
end