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

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