diff --git a/extension/_test/tasklist.txt b/extension/_test/tasklist.txt index dad65c6..256eca4 100644 --- a/extension/_test/tasklist.txt +++ b/extension/_test/tasklist.txt @@ -28,3 +28,24 @@
  • bim
  • //= = = = = = = = = = = = = = = = = = = = = = = =// + + + +3 +//- - - - - - - - -// +- test[x]=[x] +//- - - - - - - - -// + +//= = = = = = = = = = = = = = = = = = = = = = = =// + + +4 +//- - - - - - - - -// ++ [x] [x] +//- - - - - - - - -// + +//= = = = = = = = = = = = = = = = = = = = = = = =// diff --git a/extension/tasklist.go b/extension/tasklist.go index dc86c37..4467ebf 100644 --- a/extension/tasklist.go +++ b/extension/tasklist.go @@ -41,6 +41,9 @@ func (s *taskCheckBoxParser) Parse(parent gast.Node, block text.Reader, pc parse return nil } + if parent.HasChildren() { + return nil + } if _, ok := parent.Parent().(*gast.ListItem); !ok { return nil }