aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_indented.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 17:47:08 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 17:47:08 +0200
commit2e3b7abaa9877b658fa4f8f2612acc617dff60bb (patch)
treee823d041521a4af33a7e552ba58f1d4b63335be3 /tests/code_indented.rs
parent75522b867b15b9a400275cfec9a2ead4ff535473 (diff)
downloadmarkdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.tar.gz
markdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.tar.bz2
markdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.zip
Fix a lot of list things
* Add `ListItem`, `ListOrdered`, and `ListUnordered` tokens * Add support for multiline list items * Add support for tight lists * Fix bug where 10 digit long list item values worked * Fix skip bug when skipping over nested events
Diffstat (limited to 'tests/code_indented.rs')
-rw-r--r--tests/code_indented.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/code_indented.rs b/tests/code_indented.rs
index 10281a2..6735954 100644
--- a/tests/code_indented.rs
+++ b/tests/code_indented.rs
@@ -9,19 +9,17 @@ fn code_indented() {
"should support indented code"
);
- // To do: list.
- // assert_eq!(
- // micromark(" - foo\n\n bar"),
- // "<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>",
- // "should prefer list item content over indented code (1)"
- // );
+ assert_eq!(
+ micromark(" - foo\n\n bar"),
+ "<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>",
+ "should prefer list item content over indented code (1)"
+ );
- // To do: list.
- // assert_eq!(
- // micromark("1. foo\n\n - bar"),
- // "<ol>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
- // "should prefer list item content over indented code (2)"
- // );
+ assert_eq!(
+ micromark("1. foo\n\n - bar"),
+ "<ol>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
+ "should prefer list item content over indented code (2)"
+ );
assert_eq!(
micromark(" <a/>\n *hi*\n\n - one"),