Method: MDV::Document#html

Defined in:
lib/mdv/document.rb

#htmlObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/mdv/document.rb', line 16

def html
  content = File.read(fullpath)
  Commonmarker.to_html(content,
    options: {render: {hardbreaks: false},
              extension: {tagfilter: true,
                          autolink: true,
                          table: true,
                          strikethrough: true,
                          header_ids: nil}},
    plugins: {})
end