Fixed bug in list continuations. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/bdd9c05
This commit is contained in:
parent
33ef9ad6bc
commit
43b75cb12e
@ -219,7 +219,7 @@ ListItem = ( Bullet | Enumerator | DefMarker )
|
||||
}
|
||||
|
||||
ListBlock = a:StartList
|
||||
Line { a = cons($$, a) }
|
||||
!BlankLine Line { a = cons($$, a) }
|
||||
( ListBlockLine { a = cons($$, a) } )*
|
||||
{ $$ = mk_str_from_list(a, false) }
|
||||
|
||||
@ -239,8 +239,8 @@ Enumerator = NonindentSpace [0-9]+ '.' Spacechar+
|
||||
OrderedList = &Enumerator (ListTight | ListLoose)
|
||||
{ $$.key = ORDEREDLIST }
|
||||
|
||||
ListBlockLine = !( (Indent? (Bullet | Enumerator)) | DefMarker )
|
||||
!BlankLine
|
||||
ListBlockLine = !BlankLine
|
||||
!( (Indent? (Bullet | Enumerator)) | DefMarker )
|
||||
!HorizontalRule
|
||||
OptionallyIndentedLine
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user