aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-27 20:30:20 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-27 20:30:20 -0700
commit7df4d86006c42db3e2cc68c09993f7f83cca7107 (patch)
treee422786d36af6d2ac90c4afd9cafa87ebeec7fbe /src
parentfce3ebb8e023d0f9fd5756503e9264b05571b75a (diff)
downloadpandoc-7df4d86006c42db3e2cc68c09993f7f83cca7107.tar.gz
Textile writer: escape `+` and `-` as entities.
Closes #2225.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Textile.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Textile.hs b/src/Text/Pandoc/Writers/Textile.hs
index b4ef4e23f..126c1e62e 100644
--- a/src/Text/Pandoc/Writers/Textile.hs
+++ b/src/Text/Pandoc/Writers/Textile.hs
@@ -85,6 +85,8 @@ escapeCharForTextile x = case x of
'*' -> "&#42;"
'_' -> "&#95;"
'@' -> "&#64;"
+ '+' -> "&#43;"
+ '-' -> "&#45;"
'|' -> "&#124;"
'\x2014' -> " -- "
'\x2013' -> " - "