mirror of
https://github.com/danog/blackfriday.git
synced 2025-01-23 05:41:27 +01: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…
x
Reference in New Issue
Block a user