Fixing more errors.

This commit is contained in:
Tom Alexander
2023-09-03 12:28:45 -04:00
parent 3bdb24ad88
commit 0b009511ff
9 changed files with 66 additions and 72 deletions

View File

@@ -51,10 +51,9 @@ pub fn footnote_definition<'r, 's>(
exit_matcher: &footnote_definition_end,
}),
];
let parser_context = context
.with_additional_node(&contexts[0])
.with_additional_node(&contexts[1])
.with_additional_node(&contexts[2]);
let parser_context = context.with_additional_node(&contexts[0]);
let parser_context = parser_context.with_additional_node(&contexts[1]);
let parser_context = parser_context.with_additional_node(&contexts[2]);
// TODO: The problem is we are not accounting for trailing whitespace like we do in section. Maybe it would be easier if we passed down whether or not to parse trailing whitespace into the element matcher similar to how tag takes in parameters.
let element_matcher = parser_with_context!(element(true))(&parser_context);
let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context);
@@ -113,6 +112,7 @@ mod tests {
use crate::context::Context;
use crate::context::GlobalSettings;
use crate::context::List;
use crate::types::Source;
#[test]
fn two_paragraphs() {