Remove header/footer functions from blackfriday

This commit is contained in:
Christian Muehlhaeuser
2019-12-13 03:00:45 +01:00
parent ae0d31909d
commit 7c15f8780e
-9
View File
@@ -16,7 +16,6 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/renderer"
"github.com/yuin/goldmark/util"
bf "gopkg.in/russross/blackfriday.v2"
)
type Options struct {
@@ -205,14 +204,6 @@ func (tr *TermRenderer) renderNode(w util.BufWriter, source []byte, node ast.Nod
return ast.WalkContinue, nil
}
// RenderHeader renders the markdown's header.
func (tr *TermRenderer) RenderHeader(w io.Writer, ast *bf.Node) {
}
// RenderFooter renders the markdown's footer.
func (tr *TermRenderer) RenderFooter(w io.Writer, ast *bf.Node) {
}
func isChild(node ast.Node) bool {
if node.Parent() == nil {
return false