Fixed bug in list continuations. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/bdd9c05
This commit is contained in:
Michael Teichgräber 2011-02-21 02:58:53 +01:00
parent 33ef9ad6bc
commit 43b75cb12e

View File

@ -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