Rename BlockHtml and RawHtmlTag to fit golint standards #489

Also add methods BlockHtml and RawHtmlTag to point to the renamed
methods for backwards compatibility
pull/494/head
Marcus Willock 2018-10-03 17:48:36 -04:00
parent 05f3235734
commit c7f592b451
1 changed files with 8 additions and 0 deletions

View File

@ -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
}