From 02c79ea4f6c050e9e610825e8b462382beae2b5a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 29 Jul 2014 21:21:03 -0700 Subject: Mediawiki writer: don't escape inside ``. Closes #1445. Escapes can still be used with `` and `
`.
---
 src/Text/Pandoc/Writers/MediaWiki.hs | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'src/Text/Pandoc/Writers')

diff --git a/src/Text/Pandoc/Writers/MediaWiki.hs b/src/Text/Pandoc/Writers/MediaWiki.hs
index cab55be9b..3f392a5d0 100644
--- a/src/Text/Pandoc/Writers/MediaWiki.hs
+++ b/src/Text/Pandoc/Writers/MediaWiki.hs
@@ -139,10 +139,14 @@ blockToMediaWiki (CodeBlock (_,classes,_) str) = do
                        "python", "qbasic", "rails", "reg", "robots", "ruby", "sas", "scheme", "sdlbasic",
                        "smalltalk", "smarty", "sql", "tcl", "", "thinbasic", "tsql", "vb", "vbnet", "vhdl",
                        "visualfoxpro", "winbatch", "xml", "xpp", "z80"]
-  let (beg, end) = if null at
-                      then ("" else " class=\"" ++ unwords classes ++ "\">", "
") - else ("", "") - return $ beg ++ escapeString str ++ end + return $ + if null at + then "" + else " class=\"" ++ unwords classes ++ "\">") ++ + escapeString str ++ "" + else "" ++ str ++ "" + -- note: no escape! blockToMediaWiki (BlockQuote blocks) = do contents <- blockListToMediaWiki blocks -- cgit v1.2.3