@@ -87,8 +87,7 @@ pandocToDokuWiki opts (Pandoc meta blocks) = do
8787
8888-- | Escape special characters for MediaWiki.
8989escapeString :: String -> String
90−-- The spaces around // are to prevent touching in URLs inside inline code blocks
91−escapeString str = substitute " // " " %%//%% " str
90+escapeString str = substitute "//" "%%//%%" str
9291
9392-- | Convert Pandoc block element to DokuWiki.
9493blockToDokuWiki :: WriterOptions -- ^ Options
@@ -423,7 +422,7 @@ inlineToDokuWiki _ (Code _ str) =
423422 -- any formatting inside inlined code blocks would be lost, or presented incorrectly.
424423 return $ "''%%" ++ str ++ "%%''"
425424
426−inlineToDokuWiki _ (Str str) = return $ str
425+inlineToDokuWiki _ (Str str) = return $ escapeString str
427426
428427inlineToDokuWiki _ (Math _ str) = return $ "<math>" ++ str ++ "</math>"
429428 -- note: str should NOT be escaped