Class: Formdown::Renderer
- Inherits:
-
Object
- Object
- Formdown::Renderer
- Defined in:
- lib/formdown.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Renderer
constructor
A new instance of Renderer.
- #to_html ⇒ Object
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_html ⇒ Object
91 92 93 |
# File 'lib/formdown.rb', line 91 def to_html @document.to_html end |