Org reader: allow emphasized text to be followed by [

Closes: #3577
This commit is contained in:
Albert Krewinkel
2017-04-16 21:19:35 +02:00
parent 1c8683f205
commit 464db59394
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -731,7 +731,7 @@ 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]
+10
View File
@@ -1028,6 +1028,16 @@ tests =
, note $ para ("Second" <> space <> "note.")
])
, "Emphasized text before footnote" =:
unlines [ "/text/[fn:1]"
, ""
, "[fn:1] unicorn"
] =?>
para (mconcat
[ emph "text"
, note . para $ "unicorn"
])
, "Footnote that starts with emphasized text" =:
unlines [ "text[fn:1]"
, ""