}
 }
 
-// Fall back to the default Goldmark render funcs. Method below borrowed from:
-// https://github.com/yuin/goldmark/blob/b611cd333a492416b56aa8d94b04a67bf0096ab2/renderer/html/html.go#L404
-func (r *hookedRenderer) renderDefaultImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
-       if !entering {
-               return ast.WalkContinue, nil
-       }
-       n := node.(*ast.Image)
-       _, _ = w.WriteString("<img src=\"")
-       if r.Unsafe || !html.IsDangerousURL(n.Destination) {
-               _, _ = w.Write(util.EscapeHTML(util.URLEscape(n.Destination, true)))
-       }
-       _, _ = w.WriteString(`" alt="`)
-       _, _ = w.Write(n.Text(source))
-       _ = w.WriteByte('"')
-       if n.Title != nil {
-               _, _ = w.WriteString(` title="`)
-               r.Writer.Write(w, n.Title)
-               _ = w.WriteByte('"')
-       }
-       if r.XHTML {
-               _, _ = w.WriteString(" />")
-       } else {
-               _, _ = w.WriteString(">")
-       }
-       return ast.WalkSkipChildren, nil
-}
-
 func (r *hookedRenderer) renderImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
        n := node.(*ast.Image)
        var h hooks.Renderers
        }
 
        if !ok {
-               return r.renderDefaultImage(w, source, node, entering)
+               return r.renderImageDefault(w, source, node, entering)
        }
 
        if entering {
 
 // Fall back to the default Goldmark render funcs. Method below borrowed from:
 // https://github.com/yuin/goldmark/blob/b611cd333a492416b56aa8d94b04a67bf0096ab2/renderer/html/html.go#L404
-func (r *hookedRenderer) renderDefaultLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
-       n := node.(*ast.Link)
-       if entering {
-               _, _ = w.WriteString("<a href=\"")
-               if r.Unsafe || !html.IsDangerousURL(n.Destination) {
-                       _, _ = w.Write(util.EscapeHTML(util.URLEscape(n.Destination, true)))
-               }
+func (r *hookedRenderer) renderImageDefault(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
+       if !entering {
+               return ast.WalkContinue, nil
+       }
+       n := node.(*ast.Image)
+       _, _ = w.WriteString("<img src=\"")
+       if r.Unsafe || !html.IsDangerousURL(n.Destination) {
+               _, _ = w.Write(util.EscapeHTML(util.URLEscape(n.Destination, true)))
+       }
+       _, _ = w.WriteString(`" alt="`)
+       _, _ = w.Write(n.Text(source))
+       _ = w.WriteByte('"')
+       if n.Title != nil {
+               _, _ = w.WriteString(` title="`)
+               r.Writer.Write(w, n.Title)
                _ = w.WriteByte('"')
-               if n.Title != nil {
-                       _, _ = w.WriteString(` title="`)
-                       r.Writer.Write(w, n.Title)
-                       _ = w.WriteByte('"')
-               }
-               _ = w.WriteByte('>')
+       }
+       if r.XHTML {
+               _, _ = w.WriteString(" />")
        } else {
-               _, _ = w.WriteString("</a>")
+               _, _ = w.WriteString(">")
        }
-       return ast.WalkContinue, nil
+       return ast.WalkSkipChildren, nil
 }
 
 func (r *hookedRenderer) renderLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
        }
 
        if !ok {
-               return r.renderDefaultLink(w, source, node, entering)
+               return r.renderLinkDefault(w, source, node, entering)
        }
 
        if entering {
        return ast.WalkContinue, err
 }
 
+// Fall back to the default Goldmark render funcs. Method below borrowed from:
+// https://github.com/yuin/goldmark/blob/b611cd333a492416b56aa8d94b04a67bf0096ab2/renderer/html/html.go#L404
+func (r *hookedRenderer) renderLinkDefault(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
+       n := node.(*ast.Link)
+       if entering {
+               _, _ = w.WriteString("<a href=\"")
+               if r.Unsafe || !html.IsDangerousURL(n.Destination) {
+                       _, _ = w.Write(util.EscapeHTML(util.URLEscape(n.Destination, true)))
+               }
+               _ = w.WriteByte('"')
+               if n.Title != nil {
+                       _, _ = w.WriteString(` title="`)
+                       r.Writer.Write(w, n.Title)
+                       _ = w.WriteByte('"')
+               }
+               _ = w.WriteByte('>')
+       } else {
+               _, _ = w.WriteString("</a>")
+       }
+       return ast.WalkContinue, nil
+}
+
 func (r *hookedRenderer) renderAutoLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
        if !entering {
                return ast.WalkContinue, nil
        }
 
        if !ok {
-               return r.renderDefaultAutoLink(w, source, node, entering)
+               return r.renderAutoLinkDefault(w, source, node, entering)
        }
 
        url := string(n.URL(source))
 
 // Fall back to the default Goldmark render funcs. Method below borrowed from:
 // https://github.com/yuin/goldmark/blob/5588d92a56fe1642791cf4aa8e9eae8227cfeecd/renderer/html/html.go#L439
-func (r *hookedRenderer) renderDefaultAutoLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
+func (r *hookedRenderer) renderAutoLinkDefault(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
        n := node.(*ast.AutoLink)
        if !entering {
                return ast.WalkContinue, nil
        return ast.WalkContinue, nil
 }
 
-func (r *hookedRenderer) renderDefaultHeading(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
-       n := node.(*ast.Heading)
-       if entering {
-               _, _ = w.WriteString("<h")
-               _ = w.WriteByte("0123456"[n.Level])
-               if n.Attributes() != nil {
-                       r.renderAttributesForNode(w, node)
-               }
-               _ = w.WriteByte('>')
-       } else {
-               _, _ = w.WriteString("</h")
-               _ = w.WriteByte("0123456"[n.Level])
-               _, _ = w.WriteString(">\n")
-       }
-       return ast.WalkContinue, nil
-}
-
 func (r *hookedRenderer) renderHeading(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
        n := node.(*ast.Heading)
        var h hooks.Renderers
        }
 
        if !ok {
-               return r.renderDefaultHeading(w, source, node, entering)
+               return r.renderHeadingDefault(w, source, node, entering)
        }
 
        if entering {
        return ast.WalkContinue, err
 }
 
+func (r *hookedRenderer) renderHeadingDefault(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
+       n := node.(*ast.Heading)
+       if entering {
+               _, _ = w.WriteString("<h")
+               _ = w.WriteByte("0123456"[n.Level])
+               if n.Attributes() != nil {
+                       r.renderAttributesForNode(w, node)
+               }
+               _ = w.WriteByte('>')
+       } else {
+               _, _ = w.WriteString("</h")
+               _ = w.WriteByte("0123456"[n.Level])
+               _, _ = w.WriteString(">\n")
+       }
+       return ast.WalkContinue, nil
+}
+
 type links struct {
 }