Class: Mdoc::Document::Kramdown
Constant Summary
LOOP_MAX
Instance Attribute Summary
#body, #file, #meta, #out_file, #performed, #smeta, #tpl_file
Instance Method Summary
collapse
#apply!, #initialize
Constructor Details
This class inherits a constructor from Mdoc::Document
Instance Method Details
#body_html ⇒ Object
Also known as:
to_html
12
13
14
|
# File 'lib/mdoc/document/kramdown.rb', line 12
def body_html
kramdown.to_html
end
|
#body_latex ⇒ Object
Also known as:
body_tex, to_latex
16
17
18
|
# File 'lib/mdoc/document/kramdown.rb', line 16
def body_latex
kramdown.to_latex
end
|
#kramdown ⇒ Object
6
7
8
9
10
|
# File 'lib/mdoc/document/kramdown.rb', line 6
def kramdown
@kramdown = ::Kramdown::Document.new(@body) unless @kramdown
@kramdown
end
|