mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Return a *HTMLRenderer from NewHTMLRenderer
Interfaces should be satisfied implicitly.
This commit is contained in:
parent
37ffc1c86a
commit
2e53c20b2f
2
html.go
2
html.go
|
@ -124,7 +124,7 @@ func (w *HTMLWriter) Newline() {
|
|||
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user