From 4371223d132ef822cff0ddee6099a5fe295385cb Mon Sep 17 00:00:00 2001 From: tecosaur Date: Fri, 2 Apr 2021 05:36:02 +0800 Subject: Org writer: Use LaTeX style maths deliminators (#7196) Org works better with LaTeX-style delimiters. --- src/Text/Pandoc/Writers/Org.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/Org.hs b/src/Text/Pandoc/Writers/Org.hs index 88a2b8314..d0c9813da 100644 --- a/src/Text/Pandoc/Writers/Org.hs +++ b/src/Text/Pandoc/Writers/Org.hs @@ -404,8 +404,8 @@ inlineToOrg (Str str) = return . literal $ escapeString str inlineToOrg (Math t str) = do modify $ \st -> st{ stHasMath = True } return $ if t == InlineMath - then "$" <> literal str <> "$" - else "$$" <> literal str <> "$$" + then "\\(" <> literal str <> "\\)" + else "\\[" <> literal str <> "\\]" inlineToOrg il@(RawInline f str) | isRawFormat f = return $ literal str | otherwise = do -- cgit v1.2.3