Skip to content

Commit

Permalink
Fixed blockquote parser to allow lazy syntax.
Browse files Browse the repository at this point in the history
('>' at beginning of first line in a sequence only.)
  • Loading branch information
jgm committed May 16, 2008
1 parent ba78b2e commit dd79c1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ doc = mdo
para // plain
para <- newRule $ many1 inline <<- newline <<- many1 blankline ## Para
plain <- newRule $ many1 inline <<- optional blankline ## Plain
blockquote <- newRule $ many1 blockquoteLine <++> many blankline ## (\ls -> BlockQuote [Markdown $ concat ls ++ "\n"])
blockquote <- newRule $ many1 (many1 blockquoteLine <++> many (doesNotMatch blankline ->> anyline) <++>
many blankline ## concat) ## (\ls -> BlockQuote [Markdown $ concat ls ++ "\n"])

let setextHeadingWith lev c = many1 (doesNotMatch endline ->> inline) <<- newline <<-
text (replicate 3 c) <<- (many (char c)) <<- newline ## Heading lev
Expand Down

0 comments on commit dd79c1b

Please sign in to comment.