Sha256: 48b4358fe5a3a0c54375970e20078ac0bc614521b84bfb0a20385d50fabb1778

Contents?: true

Size: 268 Bytes

Versions: 16

Compression:

Stored size: 268 Bytes

Contents

class MarkdownFilter < TextFilter
  description_file File.dirname(__FILE__) + "/../markdown.html"
  def filter(text)
    if defined? RDiscount
      RDiscount.new(text, :smart).to_html
    else
      RubyPants.new(BlueCloth.new(text).to_html).to_html
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.2 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.7.2 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.8.2 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-rc-0.9.0 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.8.1 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.7.0 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.8.0 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.7.1 vendor/extensions/markdown_filter/lib/markdown_filter.rb