fixup! block: parse tables

This commit is contained in:
Noah Hellman 2023-01-29 11:40:55 +01:00
parent df8846cdba
commit 1135cf7054
3 changed files with 11 additions and 1 deletions

View file

@ -1673,6 +1673,16 @@ mod test {
);
}
#[test]
fn parse_table_escaped() {
test_parse!(
"|a\\|\n",
(Enter(Leaf(Paragraph)), ""),
(Inline, "|a\\|"),
(Exit(Leaf(Paragraph)), ""),
);
}
#[test]
fn parse_table_post() {
test_parse!(

View file

@ -31,7 +31,6 @@ pub enum Container {
Emphasis,
Strong,
Mark,
// Verbatim
Verbatim,
/// Span is the format.
RawFormat,

View file

@ -331,6 +331,7 @@ pub struct Parser<'s> {
/// Inline parser, recreated for each new inline.
inline_parser: Option<inline::Parser<span::InlineCharsIter<'s>>>,
/// Current table row is a head row.
table_head_row: bool,
/// Footnote references in the order they were encountered, without duplicates.