From 1135cf705484b59ab6cb304f63da8a91ae81032f Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sun, 29 Jan 2023 11:40:55 +0100 Subject: [PATCH] fixup! block: parse tables --- src/block.rs | 10 ++++++++++ src/inline.rs | 1 - src/lib.rs | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/block.rs b/src/block.rs index 270c0ac..288364b 100644 --- a/src/block.rs +++ b/src/block.rs @@ -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!( diff --git a/src/inline.rs b/src/inline.rs index 88006d1..6225a3f 100644 --- a/src/inline.rs +++ b/src/inline.rs @@ -31,7 +31,6 @@ pub enum Container { Emphasis, Strong, Mark, - // Verbatim Verbatim, /// Span is the format. RawFormat, diff --git a/src/lib.rs b/src/lib.rs index 8ef63b4..4fa6e3e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -331,6 +331,7 @@ pub struct Parser<'s> { /// Inline parser, recreated for each new inline. inline_parser: Option>>, + /// Current table row is a head row. table_head_row: bool, /// Footnote references in the order they were encountered, without duplicates.