Support backslash as a post character for text markup.

This commit is contained in:
Tom Alexander 2023-09-21 21:25:33 -04:00
parent c892d406c3
commit 4ff62fbfae
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -312,7 +312,7 @@ fn post<'b, 'g, 'r, 's>(
_context: RefContext<'b, 'g, 'r, 's>, _context: RefContext<'b, 'g, 'r, 's>,
input: OrgSource<'s>, input: OrgSource<'s>,
) -> Res<OrgSource<'s>, ()> { ) -> Res<OrgSource<'s>, ()> {
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, ())) Ok((remaining, ()))
} }