Class: Madness::Rendering::Pandoc
- Inherits:
-
Object
- Object
- Madness::Rendering::Pandoc
- Includes:
- ServerHelper
- Defined in:
- lib/madness/rendering/pandoc.rb
Instance Method Summary collapse
Methods included from ServerHelper
#config, #disallowed_static?, #docroot, #find_static_file, #log, #theme
Instance Method Details
#render(text) ⇒ Object
8 9 10 |
# File 'lib/madness/rendering/pandoc.rb', line 8 def render(text) PandocRuby.new(text, [{ from: :gfm, to: :html }], *).convert end |