Stop plain text ** and __ becoming formatting in dokuwiki writer (#386)
This commit is contained in:
parent
b5b622f5b8
commit
288329044a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
hello %%//%% world ** from __ me
|
||||
hello %%//%% world %%**%% from %%__%% me
|
||||
|
||||
''%%hello // world ** from __ me%%''
|
||||
|
|
Loading…
Add table
Reference in a new issue