Skip to content

Commit

Permalink
sourcepos: fix footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Mar 31, 2023
1 parent 3a4b73d commit ab4a725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ impl<'a, 'o, 'c> Parser<'a, 'o, 'c> {
*container = self.add_child(
container,
NodeValue::FootnoteDefinition(str::from_utf8(c).unwrap().to_string()),
self.first_nonspace + matched + 1, // TODO: double-check
self.first_nonspace + 1,
);
container.data.borrow_mut().internal_offset = matched;
} else if !indented
Expand Down

0 comments on commit ab4a725

Please sign in to comment.