aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authortecosaur <tec@tecosaur.com>2021-04-02 05:36:02 +0800
committerGitHub <noreply@github.com>2021-04-01 23:36:02 +0200
commit4371223d132ef822cff0ddee6099a5fe295385cb (patch)
tree0e6925343433579dd99a70b9b9e9dff3f1d20adc /src/Text/Pandoc
parent40da6c402beb64e47838254c04228098129165df (diff)
downloadpandoc-4371223d132ef822cff0ddee6099a5fe295385cb.tar.gz
Org writer: Use LaTeX style maths deliminators (#7196)
Org works better with LaTeX-style delimiters.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/Org.hs4
1 files changed, 2 insertions, 2 deletions
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