From e9ec90f319051abc3a93ce0d61cf8767077dbe5e Mon Sep 17 00:00:00 2001 From: Shane Liesegang Date: Mon, 13 Jan 2020 12:07:38 -0500 Subject: [PATCH] make sure labels have the right anchors --- extension/footnote.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extension/footnote.go b/extension/footnote.go index e38cf20..c96d8cc 100644 --- a/extension/footnote.go +++ b/extension/footnote.go @@ -275,10 +275,11 @@ func (r *FootnoteHTMLRenderer) renderFootnoteBackLink(w util.BufWriter, source [ func (r *FootnoteHTMLRenderer) renderFootnote(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) { n := node.(*ast.Footnote) - is := strconv.Itoa(n.Index) + // is := strconv.Itoa(n.Index) + ref := string(n.Ref) if entering { _, _ = w.WriteString(`