From bc7bdaaf748228bf5932fccb069ae946886be621 Mon Sep 17 00:00:00 2001 From: Jendrik Date: Fri, 28 Mar 2025 10:57:29 +0000 Subject: [PATCH] test various markdown elements after checkboxes The test are currently failing, which indicates a bug. As per this URLO thread: https://users.rust-lang.org/t/missing-list-item-names-in-the-readme-on-crates-io/127558 You can see the bug live in action at https://crates.io/crates/Yoda/0.11.5 --- crates/crates_io_markdown/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/crates/crates_io_markdown/lib.rs b/crates/crates_io_markdown/lib.rs index 6a204a71a2d..1667ac5b4f6 100644 --- a/crates/crates_io_markdown/lib.rs +++ b/crates/crates_io_markdown/lib.rs @@ -670,4 +670,20 @@ There can also be some text in between! "#); } + + #[test] + fn nested_checkbox_lists() { + let text = r#" +- [ ] `c` +- [ ] [link](https://crates.io) +- [ ] [link](#anchor) + "#; + assert_snapshot!(markdown_to_html(text, None, ""), @r##" + + "##); + } }