We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d40d282 commit ff9e6f7Copy full SHA for ff9e6f7
crates/crates_io_markdown/lib.rs
@@ -670,4 +670,20 @@ There can also be some text in between!
670
</picture>
671
"#);
672
}
673
+
674
+ #[test]
675
+ fn nested_checkbox_lists() {
676
+ let text = r#"
677
+- [ ] `c`
678
+- [ ] [link](https://crates.io)
679
+- [ ] [link](#anchor)
680
+ "#;
681
+ assert_snapshot!(markdown_to_html(text, None, ""), @r##"
682
+ <ul>
683
+ <li><input type="checkbox" disabled=""> <code>c</code></li>
684
+ <li><input type="checkbox" disabled=""> <a href="https://crates.io" rel="nofollow noopener noreferrer">link</a></li>
685
+ <li><input type="checkbox" disabled=""> <a href="#anchor" rel="nofollow noopener noreferrer">link</a></li>
686
+ </ul>
687
+ "##);
688
+ }
689
0 commit comments