From 1163e622ab80e471d9f60d0b42b92ffce033ba62 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 26 Aug 2007 03:17:40 +0000 Subject: 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 --- src/Text/Pandoc/Readers/Markdown.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/Readers/Markdown.hs') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index b4302e6e4..ed447e9c6 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -315,6 +315,7 @@ bulletListStart = try $ do anyOrderedListStart = try $ do optional newline -- if preceded by a Plain block in a list context nonindentSpaces + notFollowedBy $ string "p." >> spaceChar >> digit -- page number state <- getState if stateStrict state then do many1 digit -- cgit v1.2.3