mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Fix #418
This commit is contained in:
parent
d39ab8f93e
commit
04d4dd50ab
2 changed files with 24 additions and 0 deletions
|
|
@ -28,3 +28,24 @@
|
||||||
<li><input disabled="" type="checkbox"> bim</li>
|
<li><input disabled="" type="checkbox"> bim</li>
|
||||||
</ul>
|
</ul>
|
||||||
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
3
|
||||||
|
//- - - - - - - - -//
|
||||||
|
- test[x]=[x]
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<ul>
|
||||||
|
<li>test[x]=[x]</li>
|
||||||
|
</ul>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
||||||
|
4
|
||||||
|
//- - - - - - - - -//
|
||||||
|
+ [x] [x]
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<ul>
|
||||||
|
<li><input checked="" disabled="" type="checkbox"> [x]</li>
|
||||||
|
</ul>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ func (s *taskCheckBoxParser) Parse(parent gast.Node, block text.Reader, pc parse
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if parent.HasChildren() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if _, ok := parent.Parent().(*gast.ListItem); !ok {
|
if _, ok := parent.Parent().(*gast.ListItem); !ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue