Class: Formdown::Renderer

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

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Renderer

Returns a new instance of Renderer.



87
88
89
# File 'lib/formdown.rb', line 87

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

Instance Method Details

#to_htmlObject



91
92
93
# File 'lib/formdown.rb', line 91

def to_html
  @document.to_html
end