git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Fixed abbrev handler to allow abbrev at end of line.

E.g., Mr. Frank.

commit7b4d3c77ec6d38cd1bbf0b8036a0a8413b5a5443 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 13 Dec 2010, 19:25 (16 years ago) parent3822d6c
1 file changed+2−2
src/Text/Pandoc/Readers/Markdown.hs+2−2
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -1067,8 +1067,8 @@ str = do
10671067 then case likelyAbbrev result of
10681068 [] -> return $ Str result
10691069 xs -> choice (map (\x ->
1070− try (string x >> char ' ' >>
1071− notFollowedBy spaceChar >>
1070+ try (string x >> oneOf " \n" >>
1071+ lookAhead letter >>
10721072 return (Str $ result ++ spacesToNbr x ++ "\160"))) xs)
10731073 <|> (return $ Str result)
10741074 else return $ Str result