mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 08:55:55 +00:00
Markdown reader: Added p., pp., sec., ch., as abbreviations.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1861 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
@@ -1136,7 +1136,8 @@ likelyAbbrev x =
|
||||
let abbrevs = [ "Mr.", "Mrs.", "Ms.", "Capt.", "Dr.", "Prof.",
|
||||
"Gen.", "Gov.", "e.g.", "i.e.", "Sgt.", "St.",
|
||||
"vol.", "vs.", "Sen.", "Rep.", "Pres.", "Hon.",
|
||||
"Rev.", "Ph.D.", "M.D.", "M.A." ]
|
||||
"Rev.", "Ph.D.", "M.D.", "M.A.", "p.", "pp.",
|
||||
"ch.", "sec." ]
|
||||
abbrPairs = map (break (=='.')) abbrevs
|
||||
in map snd $ filter (\(y,_) -> y == x) abbrPairs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user