From 43b75cb12eaae4890ecaa1c560be12e017afa101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Mon, 21 Feb 2011 02:58:53 +0100 Subject: [PATCH] Fixed bug in list continuations. [jgm/peg-markdown] See https://github.com/jgm/peg-markdown/commit/bdd9c05 --- parser.leg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser.leg b/parser.leg index 402901f..dd8d8d7 100644 --- a/parser.leg +++ b/parser.leg @@ -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