print extra attributes for image tag

pull/483/head
Artem Pavlov 2018-09-03 23:21:28 +03:00
parent 2dd91c7add
commit 9aaf5e3dd6
1 changed files with 3 additions and 1 deletions

View File

@ -604,7 +604,9 @@ func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkSt
r.out(w, []byte(`" title="`))
escapeHTML(w, node.LinkData.Title)
}
r.out(w, []byte(`" />`))
r.out(w, []byte(`" `))
r.out(w, []byte(attrs.String()))
r.out(w, []byte(`/>`))
}
}
case Code: