Stop plain text ** and __ becoming formatting in dokuwiki writer (#386)

This commit is contained in:
claremacrae 2013-08-18 09:15:33 +01:00
parent b5b622f5b8
commit 288329044a
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ pandocToDokuWiki opts (Pandoc meta blocks) = do
-- | Escape special characters for MediaWiki.
escapeString :: String -> String
escapeString str = substitute "//" "%%//%%" str
escapeString str = substitute "__" "%%__%%" ( substitute "**" "%%**%%" ( substitute "//" "%%//%%" str ) )
-- | Convert Pandoc block element to DokuWiki.
blockToDokuWiki :: WriterOptions -- ^ Options

View file

@ -1,3 +1,3 @@
hello %%//%% world ** from __ me
hello %%//%% world %%**%% from %%__%% me
''%%hello // world ** from __ me%%''