diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-03-04 16:01:40 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-03-04 16:02:46 -0800 |
commit | e461b7dd45f717f3317216c7d3207a1d24bf1c85 (patch) | |
tree | 62f8671bc55724ab5398ef3464de20e95fd6b475 /src/Text | |
parent | 46e2b3dc8de0fbf948442435574ca9faa7bf3039 (diff) | |
download | pandoc-e461b7dd45f717f3317216c7d3207a1d24bf1c85.tar.gz |
Relax `--abbreviations` rules so that a period isn't required.
Partially addresses #7124.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index b1b99dfe5..34edbcc17 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -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 |