class Madness::Rendering::Pandoc

Public Instance Methods

render(text) click to toggle source
# File lib/madness/rendering/pandoc.rb, line 8
def render(text)
  PandocRuby.new(text, [{ from: :markdown, to: :html }], *options).convert
end

Private Instance Methods

options() click to toggle source
# File lib/madness/rendering/pandoc.rb, line 14
def options
  @options ||= config.highlighter ? [] : :no_highlight
end