Fix footnotes starting with empty line

This commit is contained in:
Niklas Fasching 2018-12-03 00:35:12 +01:00
parent 3c2e9ed204
commit d5665fb21c
5 changed files with 26 additions and 11 deletions

View file

@ -118,8 +118,8 @@ func (d *Document) parseFootnoteReference(input string, start int) (int, Node) {
if definition != "" {
paragraph := Paragraph{[]Node{Line{d.parseInline(definition)}}}
link.Definition = &FootnoteDefinition{name, []Node{paragraph}, true}
d.Footnotes.add(name, link.Definition)
}
d.Footnotes.add(name, link.Definition)
return len(m[0]), link
}
return 0, nil