(Attempt to) strip out noinclude tags.
This commit is contained in:
parent
d19ca39838
commit
43a36ba730
@ -161,7 +161,10 @@ class Renderer():
|
||||
|
||||
class Template():
|
||||
def __init__ (self, wikicode):
|
||||
self.wikicode = wikicode
|
||||
self.wikicode = mwparserfromhell.parse(wikicode)
|
||||
for tag in self.wikicode.ifilter_tags():
|
||||
if tag.tag == "noinclude":
|
||||
self.wikicode.remove(tag)
|
||||
|
||||
def __call__ (self, inclusion, *args):
|
||||
parsed_wikicode = mwparserfromhell.parse(self.wikicode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user