diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go index bc53d56f2b..92a54101f0 100644 --- a/modules/markup/common/footnote.go +++ b/modules/markup/common/footnote.go @@ -10,7 +10,6 @@ package common import ( "bytes" "fmt" - "os" "strconv" "unicode" @@ -415,7 +414,6 @@ func (r *FootnoteHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegist func (r *FootnoteHTMLRenderer) renderFootnoteLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) { if entering { n := node.(*FootnoteLink) - n.Dump(source, 0) is := strconv.Itoa(n.Index) _, _ = w.WriteString(``) @@ -444,7 +441,6 @@ func (r *FootnoteHTMLRenderer) renderFootnoteBackLink(w util.BufWriter, source [ func (r *FootnoteHTMLRenderer) renderFootnote(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) { n := node.(*Footnote) if entering { - fmt.Fprintf(os.Stdout, "source:\n%s\n", string(n.Text(source))) _, _ = w.WriteString(`