Module: CabbageDoc::Markdown

Defined in:
lib/cabbage_doc/markdown.rb

Defined Under Namespace

Classes: HighlightedHTML

Class Method Summary collapse

Class Method Details

.newObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/cabbage_doc/markdown.rb', line 12

def new
  Redcarpet::Markdown.new(
    HighlightedHTML.new,
    tables: true,
    fenced_code_blocks: true,
    disable_indented_code_blocks: true,
    autolink: true,
    no_intra_emphasis: true,
    strikethrough: true,
    space_after_headers: true,
    with_toc_data: true,
    hard_wrap: true
  )
end