Skip to content

Commit

Permalink
fix(parser): fix footnotes grammar (#535)
Browse files Browse the repository at this point in the history
grammar for footnote references was invalid

Fixes #532

Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon authored Apr 12, 2020
1 parent 333f595 commit 03587bb
Show file tree
Hide file tree
Showing 6 changed files with 1,213 additions and 1,474 deletions.
7 changes: 0 additions & 7 deletions pkg/parser/document_processing_rearrange_sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ func rearrangeSections(blocks []interface{}) (types.Document, error) {
}
log.Debugf("adding section with title %v as another section at level %d", e.Title, e.Level)
sections = append(sections, e)
// if len(sections) == 1 { // we have new top-level element
// log.Debugf("setting section with title %v as secondary top-level", e.Title)
// tle = append(tle, &e)
// } else {
// log.Debugf("adding section with title %v as child of section at level %d", e.Title, (len(sections) - 2))
// sections[len(sections)-2].AddElement(e) // attach to parent
// }
}
previous = &e // pointer to new current parent
} else {
Expand Down
Loading

0 comments on commit 03587bb

Please sign in to comment.