fix list item with multi-blank lines
This commit is contained in:
parent
3aee562864
commit
538ffea25c
|
@ -166,7 +166,7 @@
|
|||
((and (empty-line parser) (no-children? node))
|
||||
(add-child-node node (make-blank-node)))
|
||||
((and (empty-line parser) (blank-node? (last-child node)))
|
||||
(close-node (remove-last-child node)))
|
||||
node) ;; may be separated by more than one blank line
|
||||
((empty-line parser)
|
||||
(cond ((open-descendant? node 'fenced-code)
|
||||
(parse-container-block node parser))
|
||||
|
|
|
@ -103,7 +103,6 @@ not column"
|
|||
('paragraph _ ('text _ "2.two"))
|
||||
('paragraph _ ('text _ "-one"))))
|
||||
|
||||
;; TODO list items can contain more than one blank line
|
||||
(block-expect "parse-blocks, list item may contain blocks separated by more than one blank
|
||||
line"
|
||||
"- foo
|
||||
|
@ -118,6 +117,7 @@ line"
|
|||
|
||||
(block-expect "parse-blocks, list item may contain any kind of block"
|
||||
"1. foo
|
||||
|
||||
```
|
||||
bar
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue