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##" + + "##); + } }