block: extend parse_code_block

This commit is contained in:
Noah Hellman 2023-05-04 18:03:11 +02:00
parent c21138d5b9
commit 8d1381144e

View file

@ -1554,6 +1554,11 @@ mod test {
(Inline, " block\n"), (Inline, " block\n"),
(Exit(Leaf(CodeBlock { language: "" })), ""), (Exit(Leaf(CodeBlock { language: "" })), ""),
); );
test_parse!(
" ```abc\n",
(Enter(Leaf(CodeBlock { language: "abc" })), "abc"),
(Exit(Leaf(CodeBlock { language: "abc" })), "abc"),
);
} }
#[test] #[test]