Sha256: babab56f2b191f2b0fd719f6a3e07c57ebd025be924e3eee66655fa5f7da1e39

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

begin
  require 'rdiscount'
rescue LoadError
  # If RDiscount is not available, use packaged BlueCloth
  $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/kramdown/lib"
  require 'kramdown'
end

class MarkdownFilterExtension < Radiant::Extension
  version "1.0"
  description "Allows you to compose page parts or snippets using the Markdown text filter."
  url "http://daringfireball.net/projects/markdown/"

  def activate
    MarkdownFilter
    Page.send :include, MarkdownTags
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
radiant-1.0.0.rc2 vendor/extensions/markdown_filter/markdown_filter_extension.rb
radiant-1.0.0.rc1 vendor/extensions/markdown_filter/markdown_filter_extension.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/markdown_filter/markdown_filter_extension.rb
radiant-0.9.1 vendor/extensions/markdown_filter/markdown_filter_extension.rb