nongreedy link parsing
This commit is contained in:
parent
58ab0a76f5
commit
0b8bf13743
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ def convert_markup(page, filename):
|
|||
# web link without title
|
||||
('\[(http[^\s]+)\]', '[[\\1]]'),
|
||||
# web link with title
|
||||
('\[(http[^\s]+)\s+(.+)\]', '[[\\1|\\2]]'),
|
||||
('\[(http[^\s]+)\s+(.+?)\]', '[[\\1|\\2]]'),
|
||||
|
||||
('\["/(.*)"\]', '[['+filename[-1]+':\\1]]'),
|
||||
('\{{3}', '<'+'code>'), # code open
|
||||
|
|
Loading…
Reference in a new issue