Sha256: b220838a099d0f83df48aade7ebc688980793aaecff6227b7959fb1fc8791ff2

Contents?: true

Size: 144 Bytes

Versions: 3

Compression:

Stored size: 144 Bytes

Contents

require 'bluecloth'

class MarkdownFilter < TextFilter::Base
  register 'Markdown'

  def filter(text)
    BlueCloth.new(text).to_html
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.5.0 app/filters/markdown_filter.rb
radiant-0.5.1 app/filters/markdown_filter.rb
radiant-0.5.2 app/filters/markdown_filter.rb