Rename BlockHtml and RawHtmlTag to fit golint standards #489
Also add methods BlockHtml and RawHtmlTag to point to the renamed methods for backwards compatibilitypull/494/head
parent
05f3235734
commit
c7f592b451
8
html.go
8
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue