module CommonMarker
class HtmlRenderer < Renderer
def render(node)
super(node)
end
def header(node)
block do
out('
', '
') do out(:children) end end end end def list(node) old_in_tight = @in_tight @in_tight = node.list_tight block do if node.list_type == :bullet_list container("\n", '') do out(:children) end end end def hrule(_) block do out('
')
else
out('>')
end
out(escape_html(node.string_content))
out('
')
end
end
def html(node)
block do
out(node.string_content)
end
end
def inline_html(node)
out(node.string_content)
end
def emph(_)
out('', :children, '')
end
def strong(_)
out('', :children, '')
end
def link(node)
out('', :children, '')
end
def image(node)
out('')
out(escape_html(node.string_content))
out('
')
end
def linebreak(node)
out('