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)
|
cnt = cnt.replace(i, get_unwikitextified(site, i, ssl), 1)
|
||||||
|
|
||||||
# Strip [[...]]
|
# Strip [[...]]
|
||||||
cnt, _ = re.subn(r"\[\[([^]]*\|)?([^]]*?)\]\]", r"\2", cnt)
|
cnt, _ = re.subn(r"\[\[:?([^]]*\|)?([^]]+?)\]\]", r"\2", cnt)
|
||||||
|
|
||||||
# Strip HTML tags
|
# Strip HTML tags
|
||||||
cnt = striphtml(cnt)
|
cnt = striphtml(cnt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user