class Mdoc::Document::Kramdown

Public Instance Methods

body_html() click to toggle source
# File lib/mdoc/document/kramdown.rb, line 12
def body_html
  kramdown.to_html
end
Also aliased as: to_html
body_latex() click to toggle source
# File lib/mdoc/document/kramdown.rb, line 16
def body_latex
  kramdown.to_latex
end
Also aliased as: body_tex, to_latex
body_tex()
Alias for: body_latex
kramdown() click to toggle source
# File lib/mdoc/document/kramdown.rb, line 6
def kramdown
  # TODO: toc and other preprocessors
  @kramdown = ::Kramdown::Document.new(@body) unless @kramdown
  @kramdown
end
to_html()
Alias for: body_html
to_latex()
Alias for: body_latex