Mediawiki module: fix links
This commit is contained in:
parent
74bb0caa1b
commit
32cb79344b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue