Sha256: 2462d607af2a0fb6f7022e46e19662d3b52dfb31a8fd4eca2cafba1b48693d10
Contents?: true
Size: 716 Bytes
Versions: 16
Compression:
Stored size: 716 Bytes
Contents
begin require 'rdiscount' rescue LoadError # If RDiscount is not available, use packaged BlueCloth $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/bluecloth/lib" require 'bluecloth' end begin require 'rubypants' rescue LoadError # If rubypants gem is not available, use packaged version $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/rubypants" retry end class MarkdownFilterExtension < Radiant::Extension version "1.0" description "Allows you to compose page parts or snippets using the Markdown or SmartyPants text filters." url "http://daringfireball.net/projects/markdown/" def activate MarkdownFilter SmartyPantsFilter Page.send :include, MarkdownTags end end
Version data entries
16 entries across 16 versions & 3 rubygems