diff --git a/moin2doku.py b/moin2doku.py index f367a22..21868d3 100755 --- a/moin2doku.py +++ b/moin2doku.py @@ -137,10 +137,12 @@ def convert_markup(content, filename): # ('"\]', ']]'), # internal link close # internal links ('\[:(.+)\]', '[[\\1]]'), - # wiki:xxx - ('\[wiki:([^\s]+)\s+(.+)\]', '[[\\1|\\2]]'), # TODO: handle more depths - ('\[\[(.*)/(.*)\]\]', '[[\\1:\\2]]'), + ('\[\[(.*)/(.*)\]\]', 'B[[\\1:\\2]]'), + # wiki:xxx + ('\[wiki:([^\s]+)\s+(.+)]', '[[\\1|\\2]]'), + ('wiki:([^\s]+)\s+(.+)', '[[\\1|\\2]]'), + ('wiki:([^\s]+)', '[[\\1]]'), ('(\[\[.+\]\]).*\]', '\\1'), # web link without title @@ -175,7 +177,7 @@ def convert_markup(content, filename): ('\'{5}(.*)\'{5}', '**//\\1//**'), # bold and italic ('\'{3}(.*)\'{3}', '**\\1**'), # bold ('\'{2}(.*)\'{2}', '//\\1//'), # italic - ('`(.+?)`', "''\\1''"), # monospaced + ('`(.*?)`', "''\\1''"), # monospaced ('(?