From e9f6366af756822b61aea63aa5733df61f421e10 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 26 Jun 2012 19:50:52 -0700 Subject: Don't escape `_` as `\letterunderscore{}` in ConTeXt. --- src/Text/Pandoc/Writers/ConTeXt.hs | 1 - tests/writer.context | 4 ++-- 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] -- cgit v1.2.3