Module: Card::Set::Type::Markdown::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod032-card-mod-markdown/type/markdown.rb,
card/tmpsets/set/mod033-card-mod-markdown/type/markdown.rb

Instance Method Summary collapse

Instance Method Details

#ace_modeObject



21
22
23
# File 'card/tmpsets/set/mod032-card-mod-markdown/type/markdown.rb', line 21

def ace_mode
  :markdown
end

#input_typeObject



17
18
19
# File 'card/tmpsets/set/mod032-card-mod-markdown/type/markdown.rb', line 17

def input_type
  :ace_editor
end

#view: coreObject



11
12
13
14
15
# File 'card/tmpsets/set/mod032-card-mod-markdown/type/markdown.rb', line 11

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