Class: Formdown::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/formdown/renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Renderer

Returns a new instance of Renderer.



7
8
9
# File 'lib/formdown/renderer.rb', line 7

def initialize(content)
  @document = ::Kramdown::Document.new(content, input: 'Formdown')
end

Instance Method Details

#to_htmlObject



11
12
13
# File 'lib/formdown/renderer.rb', line 11

def to_html
  @document.to_html
end