Class: RedQuilt::Renderer::HTML
- Inherits:
-
Object
- Object
- RedQuilt::Renderer::HTML
- Defined in:
- lib/red_quilt/renderer/html.rb
Instance Method Summary collapse
-
#initialize(document, heading_ids: false, mermaid: false) ⇒ HTML
constructor
A new instance of HTML.
- #render ⇒ Object
Constructor Details
#initialize(document, heading_ids: false, mermaid: false) ⇒ HTML
Returns a new instance of HTML.
6 7 8 9 10 11 12 |
# File 'lib/red_quilt/renderer/html.rb', line 6 def initialize(document, heading_ids: false, mermaid: false) @document = document @arena = document.arena @out = +"" @slugger = Slug::Counter.new if heading_ids @mermaid = mermaid end |
Instance Method Details
#render ⇒ Object
14 15 16 17 |
# File 'lib/red_quilt/renderer/html.rb', line 14 def render render_children(@document.root_id) @out end |