Method: Frontman::MarkdownRenderer#compile

Defined in:
lib/frontman/renderers/markdown_renderer.rb

#compile(layout) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/frontman/renderers/markdown_renderer.rb', line 9

def compile(layout)
  Kramdown::Document.new(
    layout,
    syntax_highlighter: 'rouge',
    parse_block_html: true,
    fenced_code_blocks: true,
    input: 'GFM',
    with_toc_data: true,
    smartypants: true,
    hard_wrap: false
  )
end