git.iko.soy/typeable/pandoc
on master help sign in
Rewrote 'para' for greater efficiency.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@948 788f1e2b-df1e-0410-8736-df70ead52e1b

commit3edf5834e836a71327d8a607a56dbcbd46deb745 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 29 Aug 2007, 00:08 (19 years ago) parent902d6c7
1 file changed+4−6
src/Text/Pandoc/Readers/Markdown.hs+4−6
src/Text/Pandoc/Readers/Markdown.hs+4−6
@@ -433,12 +433,10 @@ definitionList = do
433433para = try $ do
434434 result <- many1 inline
435435 newline
436− st <- getState
437− if stateStrict st
438− then choice [ lookAhead blockQuote, lookAhead header,
439− (blanklines >> return Null) ]
440− else choice [ lookAhead emacsBoxQuote >> return Null,
441− (blanklines >> return Null) ]
436+ blanklines <|> do st <- getState
437+ if stateStrict st
438+ then lookAhead (blockQuote <|> header) >> return ""
439+ else lookAhead emacsBoxQuote >> return ""
442440 return $ Para $ normalizeSpaces result
443441
444442plain = many1 inline >>= return . Plain . normalizeSpaces