Skip to content

Commit

Permalink
Fix bugs in footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Jul 24, 2019
1 parent 19b18e8 commit 21b4a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extension/_test/footnote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ That's some text with a footnote.[^1]
<p>That's the second paragraph.</p>
</li>
</ol>
<section>
</section>
//= = = = = = = = = = = = = = = = = = = = = = = =//


Expand Down
1 change: 1 addition & 0 deletions extension/footnote.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (b *footnoteBlockParser) Close(node gast.Node, reader text.Reader, pc parse
} else {
list = ast.NewFootnoteList()
pc.Set(footnoteListKey, list)
node.Parent().InsertBefore(node.Parent(), node, list)
}
node.Parent().RemoveChild(node.Parent(), node)
n := node.(*ast.Footnote)
Expand Down

0 comments on commit 21b4a04

Please sign in to comment.