Class: HtmlRenderer

Inherits:
Markly::Renderer::HTML
  • Object
show all
Defined in:
lib/obsidian/parser/html_renderer.rb

Instance Method Summary collapse

Instance Method Details

#header(node) ⇒ Object



2
3
4
5
6
7
# File 'lib/obsidian/parser/html_renderer.rb', line 2

def header(node)
  block do
    out("<h", node.header_level, " id=\"", header_id(node), "\">",
      :children, "</h", node.header_level, ">")
  end
end