Class: Serif::Markdown

Inherits:
Object
  • Object
show all
Defined in:
lib/serif/markup_renderer.rb

Class Method Summary collapse

Class Method Details

.render(markdown) ⇒ Object



21
22
23
24
25
26
27
28
29
30
# File 'lib/serif/markup_renderer.rb', line 21

def self.render(markdown)
  options = {
    input: "GFM",
    auto_id_stripping: true,
    enable_coderay: false,
    hard_wrap: false,
    parse_block_html: false
  }
  Kramdown::Document.new(markdown, options).to_serif_custom
end