block: extend parse_table_align
This commit is contained in:
parent
4f863f91d5
commit
c21138d5b9
1 changed files with 13 additions and 0 deletions
13
src/block.rs
13
src/block.rs
|
@ -2342,6 +2342,19 @@ mod test {
|
||||||
(Exit(Container(TableRow { head: false })), "|"),
|
(Exit(Container(TableRow { head: false })), "|"),
|
||||||
(Exit(Container(Table)), "")
|
(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]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue