From e4467ba10c6d793ffe4b598719d3ba882240db97 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Sat, 26 Aug 2023 12:33:21 +0530 Subject: Org reader: allow escaping commas in macro arguments Signed-off-by: Amneesh Singh --- test/Tests/Readers/Org/Inline.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Readers/Org/Inline.hs b/test/Tests/Readers/Org/Inline.hs index 2c01c4a82..b0c56faa4 100644 --- a/test/Tests/Readers/Org/Inline.hs +++ b/test/Tests/Readers/Org/Inline.hs @@ -393,6 +393,11 @@ tests = , "{{{HELLO()}}}" ] =?> para "Foo Bar" + , "Macro called with an escaped comma" =: + T.unlines [ "#+MACRO: HELLO Foo $1" + , "{{{HELLO(moin\\, niom)}}}" + ] =?> + para "Foo moin, niom" , testGroup "Citations" Citation.tests , testGroup "Footnotes" Note.tests -- cgit v1.2.3