aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-07-24 10:46:41 +0200
committerJohn MacFarlane <[email protected]>2025-08-06 12:54:12 -0700
commitb24bba7a20b1d40b4b9de71015e29fa535a395f3 (patch)
tree93b995f51892b4e7a6cf258d0c98bc2dc9db8e44 /test/Tests
parent3a185fb5d008f8ffb1cc1cb03b805a29df24a2c9 (diff)
Add `smart_quotes` and `special_strings` extensions for Org
Org mode makes a distinction between smart parsing of quotes, and smart parsing of special strings like `...`. The finer grained control over these features is necessary to truthfully reproduce Emacs Org mode behavior. Special strings are enabled by default, while smart quotes are disabled. The behavior of `special_string` is brought closer to the reference implementation in that `\-` is now treated as a soft hyphen.
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Readers/Org/Inline/Smart.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Inline/Smart.hs b/test/Tests/Readers/Org/Inline/Smart.hs
index f4f80af4b..66c0778df 100644
--- a/test/Tests/Readers/Org/Inline/Smart.hs
+++ b/test/Tests/Readers/Org/Inline/Smart.hs
@@ -47,6 +47,10 @@ tests =
("/foo---/" =?>
para (emph "foo—"))
+ , test orgSmart "Support for shy (soft) hyphen"
+ ("Ur\\-instinkt" =?>
+ para "Ur\173instinkt")
+
, test orgSmart "Single quotes can be followed by emphasized text"
("Singles on the '/meat market/'" =?>
para ("Singles on the " <> singleQuoted (emph "meat market")))