Sha256: a52d945efceabe58217851eedf2e1c508bcfff03808262045d5988990e4dd599

Contents?: true

Size: 278 Bytes

Versions: 12

Compression:

Stored size: 278 Bytes

Contents

require "kramdown"

format :html do
  view :core do
    safe_process_content do |content|
      Kramdown::Document.new(content).to_html
    end
  end

  def escape_literal literal
    literal
  end

  def input_type
    :ace_editor
  end

  def ace_mode
    :markdown
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-mod-markdown-0.15.5 set/type/markdown.rb
card-mod-markdown-0.15.4 set/type/markdown.rb
card-mod-markdown-0.15.3 set/type/markdown.rb
card-mod-markdown-0.15.2.pre1 set/type/markdown.rb
card-mod-markdown-0.15.1.1 set/type/markdown.rb
card-mod-markdown-0.15.1 set/type/markdown.rb
card-mod-markdown-0.15.0 set/type/markdown.rb
card-mod-markdown-0.14.2 set/type/markdown.rb
card-mod-markdown-0.14.1 set/type/markdown.rb
card-mod-markdown-0.14.0 set/type/markdown.rb
card-mod-markdown-0.13.4 set/type/markdown.rb
card-mod-markdown-0.13.3 set/type/markdown.rb