Sha256: 7c9c40efbff009c41e123620bb326f128c9f1374a114a34f64229d8416e2dc1d

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

class String

  # Converts the string using RedCloth/Textile
  def textile
    nanoc_require 'redcloth'
    RedCloth.new(self).to_html
  end

end

register_filter 'textile', 'redcloth' do |page, pages, config|
  page.content.textile
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-1.6.2 lib/nanoc/filters/textile_filter.rb
nanoc-1.6 lib/nanoc/filters/textile_filter.rb
nanoc-1.6.1 lib/nanoc/filters/textile_filter.rb