Switch the keyword parsers over to using the settings from GlobalSettings.
This commit is contained in:
@@ -56,7 +56,8 @@ fn _element<'b, 'g, 'r, 's>(
|
||||
input: OrgSource<'s>,
|
||||
can_be_paragraph: bool,
|
||||
) -> Res<OrgSource<'s>, Element<'s>> {
|
||||
let (post_affiliated_keywords_input, affiliated_keywords) = many0(affiliated_keyword)(input)?;
|
||||
let (post_affiliated_keywords_input, affiliated_keywords) =
|
||||
many0(parser_with_context!(affiliated_keyword)(context))(input)?;
|
||||
|
||||
let mut affiliated_keywords = affiliated_keywords.into_iter();
|
||||
|
||||
@@ -272,13 +273,14 @@ fn _detect_element<'b, 'g, 'r, 's>(
|
||||
input: OrgSource<'s>,
|
||||
can_be_paragraph: bool,
|
||||
) -> Res<OrgSource<'s>, ()> {
|
||||
// TODO: unify parsing of affiliated keywords like we did for the element parser.
|
||||
if alt((
|
||||
parser_with_context!(detect_plain_list)(context),
|
||||
detect_footnote_definition,
|
||||
detect_diary_sexp,
|
||||
parser_with_context!(detect_footnote_definition)(context),
|
||||
parser_with_context!(detect_diary_sexp)(context),
|
||||
detect_comment,
|
||||
detect_fixed_width_area,
|
||||
detect_table,
|
||||
parser_with_context!(detect_fixed_width_area)(context),
|
||||
parser_with_context!(detect_table)(context),
|
||||
))(input)
|
||||
.is_ok()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user