diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs
index 97b1705d1..b9eb444b3 100644
--- a/src/Text/Pandoc/Writers/DokuWiki.hs
+++ b/src/Text/Pandoc/Writers/DokuWiki.hs
@@ -143,7 +143,7 @@ blockToDokuWiki _ (CodeBlock (_,classes,_) str) = do
let (beg, end) = if null at
then ("" else " class=\"" ++ unwords classes ++ "\">", "
")
else ("")
- return $ beg ++ escapeString str ++ end
+ return $ beg ++ str ++ end
blockToDokuWiki opts (BlockQuote blocks) = do
contents <- blockListToDokuWiki opts blocks
diff --git a/tests/writer.dokuwiki b/tests/writer.dokuwiki
index b9a8a3c05..489726a76 100644
--- a/tests/writer.dokuwiki
+++ b/tests/writer.dokuwiki
@@ -51,7 +51,7 @@ E-mail style:
Code in a block quote:sub status { - print "working"; + print "working"; }
A list: @@ -78,7 +78,7 @@ Code:---- (should be four hyphens) sub status { - print "working"; + print "working"; } this code block is indented by one tab
@@ -86,7 +86,7 @@ And:this code block is indented by two tabs -These should not be escaped: \$ \\ \> \[ \{
+These should not be escaped: \$ \\ \> \[ \{ ---- @@ -352,12 +352,12 @@ foo This should be a code block, though: -<div> +
As should this: -
foo -</div> +<div>foo</div>
+Now, nested:
foo@@ -386,14 +386,14 @@ Blah Code block: -<!-- Comment -->
+Just plain comment, with trailing spaces on the line: Code: -
<hr />
+Hr’s:
@@ -617,7 +617,7 @@ An e-mail address: [[mailto:nobody@nowhere.net|nobody@nowhere.net]] Auto-links should not occur here:<http://example.com/>
-or here: <http://example.com/>
+or here:
---- @@ -639,7 +639,7 @@ Here is a footnote reference,((Here is the footnote. It can go anywhere after th Subsequent blocks are indented to show that they belong to the footnote (as with list items). -{ <code> }
+{
}
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. )) This should //not// be a footnote reference, because it contains a space.[^my note] Here is an inline note.((This is //easier// to type. Inline notes may contain [[http://google.com|links]] and]
verbatim characters, as well as [bracketed text]. ))