Don't count
p. 27
at the beginning of a line as an ordered list start, since
it's most likely a page number.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@900 788f1e2b-df1e-0410-8736-df70ead52e1b
commit1163e622ab80e471d9f60d0b42b92ffce033ba62
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateSun 26 Aug 2007, 03:17 (19 years ago)
parentb46beda
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -315,6 +315,7 @@ bulletListStart = try $ do
315315anyOrderedListStart = try $ do
316316 optional newline -- if preceded by a Plain block in a list context
317317 nonindentSpaces
318+ notFollowedBy $ string "p." >> spaceChar >> digit -- page number
318319 state <- getState
319320 if stateStrict state
320321 then do many1 digit