This repository was archived by the owner on Feb 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ abstract class ListSyntax extends BlockSyntax {
141141
142142 final indentedLine = parser.current.content.dedent (indent);
143143
144+ taskListItemState = null ;
144145 childLines.add (Line (
145146 blankLines == null
146147 ? indentedLine.text
@@ -214,6 +215,7 @@ abstract class ListSyntax extends BlockSyntax {
214215 indent = precedingWhitespaces + contentWhitespances;
215216 }
216217
218+ taskListItemState = null ;
217219 var content = contentBlockStart != null && ! isBlank
218220 ? parseTaskListItem (textParser.substring (contentBlockStart))
219221 : '' ;
Original file line number Diff line number Diff line change 6060<pre><code>[ ] four
6161</code></pre>
6262</li>
63+ </ol>
64+ >>> checkbox with empty content
65+ 1. [ ] one
66+ 2.
67+ 3.
68+ 4. four
69+ 5. [ ] five
70+ 6.
71+ <<<
72+ <ol class="contains-task-list">
73+ <li class="task-list-item"><input type="checkbox"></input>one</li>
74+ <li></li>
75+ <li></li>
76+ <li>four</li>
77+ <li class="task-list-item"><input type="checkbox"></input>five</li>
78+ <li></li>
6379</ol>
You can’t perform that action at this time.
0 commit comments