aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-06-26 19:50:52 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-06-26 19:50:52 -0700
commite9f6366af756822b61aea63aa5733df61f421e10 (patch)
tree528e06086e215da9526a64564a8de2d0c1d8163e
parente03b940baa435863ead2181f42e0efddeb4dffbf (diff)
downloadpandoc-e9f6366af756822b61aea63aa5733df61f421e10.tar.gz
Don't escape `_` as `\letterunderscore{}` in ConTeXt.
-rw-r--r--src/Text/Pandoc/Writers/ConTeXt.hs1
-rw-r--r--tests/writer.context4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs
index d6fc516a5..4514199b5 100644
--- a/src/Text/Pandoc/Writers/ConTeXt.hs
+++ b/src/Text/Pandoc/Writers/ConTeXt.hs
@@ -104,7 +104,6 @@ escapeCharForConTeXt opts ch =
'>' -> "\\lettermore{}"
'[' -> "{[}"
']' -> "{]}"
- '_' -> "\\letterunderscore{}"
'\160' -> "~"
'\x2014' | ligatures -> "---"
'\x2013' | ligatures -> "--"
diff --git a/tests/writer.context b/tests/writer.context
index 7f8d8a115..0a163d2b0 100644
--- a/tests/writer.context
+++ b/tests/writer.context
@@ -717,7 +717,7 @@ Backtick: `
Asterisk: *
-Underscore: \letterunderscore{}
+Underscore: _
Left brace: \letteropenbrace{}
@@ -761,7 +761,7 @@ Just a \useURL[url4][/url/][][URL]\from[url4].
\useURL[url9][/url/][][URL and title]\from[url9]
-\useURL[url10][/url/with_underscore][][with\letterunderscore{}underscore]\from[url10]
+\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]