Mediawiki module: fix links
This commit is contained in:
parent
74bb0caa1b
commit
32cb79344b
@ -60,7 +60,7 @@ def parse_wikitext(site, cnt, ssl=False):
|
||||
cnt = cnt.replace(i, get_unwikitextified(site, i, ssl), 1)
|
||||
|
||||
# Strip [[...]]
|
||||
cnt, _ = re.subn(r"\[\[([^]]*\|)?([^]]*?)\]\]", r"\2", cnt)
|
||||
cnt, _ = re.subn(r"\[\[:?([^]]*\|)?([^]]+?)\]\]", r"\2", cnt)
|
||||
|
||||
# Strip HTML tags
|
||||
cnt = striphtml(cnt)
|
||||
|
Loading…
Reference in New Issue
Block a user