From eb9c582fa5cc92aa035da7ec8767ad6a20f45ca0 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 29 Aug 2023 23:57:15 -0400 Subject: [PATCH] '>' is allowed as a post character in text markup. --- .../object/text_markup/verbatim_with_equals_inside.org | 1 + src/parser/text_markup.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 org_mode_samples/object/text_markup/verbatim_with_equals_inside.org diff --git a/org_mode_samples/object/text_markup/verbatim_with_equals_inside.org b/org_mode_samples/object/text_markup/verbatim_with_equals_inside.org new file mode 100644 index 0000000..1a1b513 --- /dev/null +++ b/org_mode_samples/object/text_markup/verbatim_with_equals_inside.org @@ -0,0 +1 @@ +foo ==>bar=. diff --git a/src/parser/text_markup.rs b/src/parser/text_markup.rs index d198457..a16de62 100644 --- a/src/parser/text_markup.rs +++ b/src/parser/text_markup.rs @@ -277,7 +277,7 @@ pub fn pre<'r, 's>(_context: Context<'r, 's>, input: OrgSource<'s>) -> Res(_context: Context<'r, 's>, input: OrgSource<'s>) -> Res, ()> { - let (remaining, _) = alt((recognize(one_of(" \r\n\t-.,;:!?')}[\">")), line_ending))(input)?; + let (remaining, _) = alt((recognize(one_of(" \r\n\t-.,;:!?')}[\"")), line_ending))(input)?; Ok((remaining, ())) }