Relax --abbreviations rules so that a period isn't required.

Partially addresses #7124.
This commit is contained in:
John MacFarlane 2021-03-04 16:01:40 -08:00
parent 46e2b3dc8d
commit e461b7dd45
2 changed files with 4 additions and 4 deletions

View file

@ -691,9 +691,9 @@ header when requesting a document from a URL:
system default, use
`pandoc --print-default-data-file=abbreviations`. The only
use pandoc makes of this list is in the Markdown reader.
Strings ending in a period that are found in this list will
be followed by a nonbreaking space, so that the period will
not produce sentence-ending space in formats like LaTeX.
Strings found in this list will be followed by a nonbreaking
space, and the period will not produce sentence-ending space
in formats like LaTeX. The strings may not contain spaces.
[`pandocfilters`]: https://github.com/jgm/pandocfilters
[PHP]: https://github.com/vinai/pandocfilters-php

View file

@ -1725,7 +1725,7 @@ str = do
updateLastStrPos
(do guardEnabled Ext_smart
abbrevs <- getOption readerAbbreviations
if not (T.null result) && T.last result == '.' && result `Set.member` abbrevs
if result `Set.member` abbrevs
then try (do ils <- whitespace
notFollowedBy (() <$ cite <|> () <$ note)
-- ?? lookAhead alphaNum