Fix footnotes starting with empty line
This commit is contained in:
parent
3c2e9ed204
commit
d5665fb21c
5 changed files with 26 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue