Sha256: 37e28c9582c1b308bce9d6c2e34422ccf50bdcb208ab606de14cc4a236c6b9d1

Contents?: true

Size: 232 Bytes

Versions: 11

Compression:

Stored size: 232 Bytes

Contents

require 'bluecloth'
require 'rubypants/rubypants'

class MarkdownFilter < TextFilter
  description_file File.dirname(__FILE__) + "/../markdown.html"
  def filter(text)
    RubyPants.new(BlueCloth.new(text).to_html).to_html
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-0.6.1 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.0 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.2 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.3 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.5.1 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.4 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.5 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.6 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.7 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.9 vendor/extensions/markdown_filter/lib/markdown_filter.rb
radiant-0.6.8 vendor/extensions/markdown_filter/lib/markdown_filter.rb