git.iko.soy/typeable/pandoc
on master help sign in
Don't escape `_` as `\letterunderscore{}` in ConTeXt.
commite9f6366af756822b61aea63aa5733df61f421e10 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 26 Jun 2012, 19:50 (14 years ago) parente03b940
2 files changed+2−3
src/Text/Pandoc/Writers/ConTeXt.hs−1 tests/writer.context+2−2
src/Text/Pandoc/Writers/ConTeXt.hs−1
@@ -104,7 +104,6 @@ escapeCharForConTeXt opts ch =
104104 '>' -> "\\lettermore{}"
105105 '[' -> "{[}"
106106 ']' -> "{]}"
107− '_' -> "\\letterunderscore{}"
108107 '\160' -> "~"
109108 '\x2014' | ligatures -> "---"
110109 '\x2013' | ligatures -> "--"
tests/writer.context+2−2
@@ -717,7 +717,7 @@ Backtick: `
717717
718718Asterisk: *
719719
720−Underscore: \letterunderscore{}
720+Underscore: _
721721
722722Left brace: \letteropenbrace{}
723723
@@ -761,7 +761,7 @@ Just a \useURL[url4][/url/][][URL]\from[url4].
761761
762762\useURL[url9][/url/][][URL and title]\from[url9]
763763
764−\useURL[url10][/url/with_underscore][][with\letterunderscore{}underscore]\from[url10]
764+\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
765765
766766\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
767767