From c21138d5b95e48944137a2618dadb4784926e7df Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Wed, 3 May 2023 23:44:48 +0200 Subject: [PATCH] block: extend parse_table_align --- src/block.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/block.rs b/src/block.rs index c4b921c..edca5f6 100644 --- a/src/block.rs +++ b/src/block.rs @@ -2342,6 +2342,19 @@ mod test { (Exit(Container(TableRow { head: false })), "|"), (Exit(Container(Table)), "") ); + test_parse!( + concat!( + "||\n", // + "|-:|\n", // + ), + (Enter(Container(Table)), ""), + (Enter(Container(TableRow { head: true })), "|"), + (Enter(Leaf(TableCell(Alignment::Right))), "|"), + (Inline, ""), + (Exit(Leaf(TableCell(Alignment::Right))), "|"), + (Exit(Container(TableRow { head: true })), "|"), + (Exit(Container(Table)), ""), + ); } #[test]