aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-03-20 11:24:19 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-03-20 12:16:34 +0300
commit268c73c873b93daf3321d38d659be7849579c7f0 (patch)
tree7eb4e2c0db9e395cfc4be0ea1a08c89b98af2882 /src/Text
parentd63bba30661182f15e56d07997ee0f7b539eb2ce (diff)
downloadpandoc-268c73c873b93daf3321d38d659be7849579c7f0.tar.gz
Muse writer: escape ";" to avoid accidental comments
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/Muse.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Muse.hs b/src/Text/Pandoc/Writers/Muse.hs
index e72fcf52b..eb1821922 100644
--- a/src/Text/Pandoc/Writers/Muse.hs
+++ b/src/Text/Pandoc/Writers/Muse.hs
@@ -290,7 +290,8 @@ conditionalEscapeString s =
"::" `isInfixOf` s ||
"----" `isInfixOf` s ||
"~~" `isInfixOf` s ||
- "-" == s
+ "-" == s ||
+ ";" == s
then escapeString s
else s