diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-09-25 09:31:29 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-09-25 09:31:29 +0200 |
commit | 3a7663281a35292b87471da4f5b7a88808546076 (patch) | |
tree | 80dda5d6f4f89d8507390fa0d24faa6a07ad7114 /src/Text/Pandoc/Readers/Org | |
parent | c78a101b7d6740f12b28a5bbdeecbc58da1302c8 (diff) | |
download | pandoc-3a7663281a35292b87471da4f5b7a88808546076.tar.gz |
Org reader: update emphasis border chars
The org reader was updated to match current org-mode behavior: the set
of characters which are acceptable to occur as the first or last
character in an org emphasis have been changed and now allows all
non-whitespace chars at the inner border of emphasized text (see
`org-emphasis-regexp-components`).
Fixes: #3933
Diffstat (limited to 'src/Text/Pandoc/Readers/Org')
-rw-r--r-- | src/Text/Pandoc/Readers/Org/Inlines.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Inlines.hs b/src/Text/Pandoc/Readers/Org/Inlines.hs index 42fdfd4dd..c5b1ccc52 100644 --- a/src/Text/Pandoc/Readers/Org/Inlines.hs +++ b/src/Text/Pandoc/Readers/Org/Inlines.hs @@ -735,15 +735,15 @@ many1TillNOrLessNewlines n p end = try $ -- | Chars allowed to occur before emphasis (spaces and newlines are ok, too) emphasisPreChars :: [Char] -emphasisPreChars = "\t \"'({" +emphasisPreChars = "-\t ('\"{" -- | Chars allowed at after emphasis emphasisPostChars :: [Char] -emphasisPostChars = "\t\n !\"'),-.:;?\\}[" +emphasisPostChars = "-\t\n .,:!?;'\")}[" -- | Chars not allowed at the (inner) border of emphasis emphasisForbiddenBorderChars :: [Char] -emphasisForbiddenBorderChars = "\t\n\r \"'," +emphasisForbiddenBorderChars = "\t\n\r " -- | The maximum number of newlines within emphasisAllowedNewlines :: Int |