mwparserfromhell
mwparserfromhell copied to clipboard
`}}` in parameter value wrongly recognized as end of template
text = '''
{{hello
|foo={{A}, {B}}
|bar=123
}}
'''
import mwparserfromhell
print(mwparserfromhell.parse(text).filter_templates())
Expected output:
['{{hello\n|foo={{A}, {B}}\n|bar=123\n}}']
Received output:
['{{hello\n|foo={{A}, {B}}']