summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-08-16 15:31:52 +0200
committerDaniel Schadt <kingdread@gmx.de>2021-08-16 15:31:52 +0200
commit2574e7cd44eba6db82a24cac6151ee18a2aca9ae (patch)
tree730673b065b7a23d28694b51ff6a3463a26f8c44
parent824ea3efa8d3c41e7c3429eae3ece97a5e384547 (diff)
downloadwikimini-2574e7cd44eba6db82a24cac6151ee18a2aca9ae.tar.gz
wikimini-2574e7cd44eba6db82a24cac6151ee18a2aca9ae.tar.bz2
wikimini-2574e7cd44eba6db82a24cac6151ee18a2aca9ae.zip
Render {{script|...}} like we do with {{lang|...}}
Even though those macros are slightly different, we can handle them in pretty much the same way (discard the meta information and just output the characters).
-rw-r--r--wikimini/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikimini/__init__.py b/wikimini/__init__.py
index 790170f..12c3f31 100644
--- a/wikimini/__init__.py
+++ b/wikimini/__init__.py
@@ -162,7 +162,7 @@ def _convert(obj: Union[mwp.nodes.Node, mwp.wikicode.Wikicode]) -> str:
name = str(obj.name).strip().lower()
if name in {"cvt", "convert"}:
return render_convert(obj)
- elif name == "lang":
+ elif name in {"lang", "script"}:
return _convert(obj.params[1].value)
elif name in {"reign", "r.", "ruled", "rexit"}:
return render_reign(obj)