Skip to content

Instantly share code, notes, and snippets.

View hyperionel's full-sized avatar

Ungureanu Bogdan hyperionel

View GitHub Profile
@hyperionel
hyperionel / gist:cd5b3cd77353379e63d16721aae239b2
Last active March 17, 2017 18:35
Commonmarker characteristics
# Commonmarker's default html renderer: https://github.com/gjtorikian/commonmarker/blob/master/lib/commonmarker/renderer/html_renderer.rb
# It has a sepparate method for each type of html tag it supports
# paragraph method:
def paragraph(node)
if @in_tight && node.parent.type != :blockquote
out(:children)
else
block do