git.iko.soy/typeable/pandoc
on master help sign in
Require two spaces after capital letter + period for list item.

Otherwise "E. coli" starts a list. This might change the semantics of some existing documents, since previously the two-space requirement was only enforced when the second word started with a capital letter. But it is consistent with the existing documentation and follows the principle of least surprise. Resolves Issue #212. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1829 788f1e2b-df1e-0410-8736-df70ead52e1b

commit6f0d4e49d16e9acb236221597d21e4139347897d authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 3 Feb 2010, 05:48 (17 years ago) parent14bc8ff
1 file changed+2−2
src/Text/Pandoc/Readers/Markdown.hs+2−2
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -33,7 +33,7 @@ module Text.Pandoc.Readers.Markdown (
3333
3434import Data.List ( transpose, isPrefixOf, isSuffixOf, sortBy, findIndex, intercalate )
3535import Data.Ord ( comparing )
36−import Data.Char ( isAlphaNum, isUpper )
36+import Data.Char ( isAlphaNum )
3737import Data.Maybe
3838import Text.Pandoc.Definition
3939import Text.Pandoc.Shared
@@ -479,7 +479,7 @@ anyOrderedListStart = try $ do
479479 -- if it could be an abbreviated first name, insist on more than one space
480480 if delim == Period && (style == UpperAlpha || (style == UpperRoman &&
481481 num `elem` [1, 5, 10, 50, 100, 500, 1000]))
482− then char '\t' <|> (char ' ' >>~ notFollowedBy (satisfy isUpper))
482+ then char '\t' <|> (try $ char ' ' >> spaceChar)
483483 else spaceChar
484484 skipSpaces
485485 return (num, style, delim)