git.iko.soy/typeable/pandoc
on master help sign in
Don't escape `_` as `\letterunderscore{}` in ConTeXt.
e9f6366John MacFarlane
src/Text/Pandoc/Writers/ConTeXt.hs−1
@@ -104,7 +104,6 @@ escapeCharForConTeXt opts ch =
104 '>' -> "\\lettermore{}"
104 '>' -> "\\lettermore{}"
105 '[' -> "{[}"
105 '[' -> "{[}"
106 ']' -> "{]}"
106 ']' -> "{]}"
107− '_' -> "\\letterunderscore{}"
108 '\160' -> "~"
107 '\160' -> "~"
109 '\x2014' | ligatures -> "---"
108 '\x2014' | ligatures -> "---"
110 '\x2013' | ligatures -> "--"
109 '\x2013' | ligatures -> "--"
tests/writer.context+2−2
@@ -717,7 +717,7 @@ Backtick: `
717
717
718Asterisk: *
718Asterisk: *
719
719
720−Underscore: \letterunderscore{}
720+Underscore: _
721
721
722Left brace: \letteropenbrace{}
722Left brace: \letteropenbrace{}
723
723
@@ -761,7 +761,7 @@ Just a \useURL[url4][/url/][][URL]\from[url4].
761
761
762\useURL[url9][/url/][][URL and title]\from[url9]
762\useURL[url9][/url/][][URL and title]\from[url9]
763
763
764−\useURL[url10][/url/with_underscore][][with\letterunderscore{}underscore]\from[url10]
764+\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
765
765
766\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
766\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
767
767