From c7f592b451fce8051270dee4dfce93b16a492932 Mon Sep 17 00:00:00 2001 From: Marcus Willock Date: Wed, 3 Oct 2018 17:48:36 -0400 Subject: [PATCH] Rename BlockHtml and RawHtmlTag to fit golint standards #489 Also add methods BlockHtml and RawHtmlTag to point to the renamed methods for backwards compatibility --- html.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/html.go b/html.go index e0a6c69c..0be3ff9e 100644 --- a/html.go +++ b/html.go @@ -239,6 +239,10 @@ func (options *Html) Header(out *bytes.Buffer, text func() bool, level int, id s } func (options *Html) BlockHtml(out *bytes.Buffer, text []byte) { + options.BlockHTML(out, text) +} + +func (options *Html) BlockHTML(out *bytes.Buffer, text []byte) { if options.flags&HTML_SKIP_HTML != 0 { return } @@ -575,6 +579,10 @@ func (options *Html) Link(out *bytes.Buffer, link []byte, title []byte, content } func (options *Html) RawHtmlTag(out *bytes.Buffer, text []byte) { + options.RawHTMLTag(out, text) +} + +func (options *Html) RawHTMLTag(out *bytes.Buffer, text []byte) { if options.flags&HTML_SKIP_HTML != 0 { return }