all repos — grayfriday @ 89653c9927011c4bbe9dea056d1cbdd960fe7bde

blackfriday fork with a few changes

Merge pull request #274 from Ambrevar/v2misc

v2: Implicit interface and Stringer
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 27 Jul 2016 09:39:58 +0300
commit

89653c9927011c4bbe9dea056d1cbdd960fe7bde

parent

fd97b7d32f610d16b5d2d355ca62d513f956e074

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M html.gohtml.go

@@ -107,7 +107,7 @@ )

// NewHTMLRenderer creates and configures an HTMLRenderer object, which // satisfies the Renderer interface. -func NewHTMLRenderer(params HTMLRendererParameters) Renderer { +func NewHTMLRenderer(params HTMLRendererParameters) *HTMLRenderer { // configure the rendering engine closeTag := htmlClose if params.Flags&UseXHTML != 0 {
M node.gonode.go

@@ -310,6 +310,10 @@ nw.entering = entering

return nw.next() } +func (ast *Node) String() string { + return dumpString(ast) +} + func dump(ast *Node) { fmt.Println(dumpString(ast)) }