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