mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
@@ -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]
|
||||
|
||||
@@ -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]"
|
||||
, ""
|
||||
|
||||
Reference in New Issue
Block a user