From 46e89b622ad24ed12a0aefad5551a4e1497e6270 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 16 Aug 2021 16:22:53 +0200 Subject: add {{main article|...}} as alias for {{main|...}} --- wikimini/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wikimini/__init__.py b/wikimini/__init__.py index ca8bfab..e6bc513 100644 --- a/wikimini/__init__.py +++ b/wikimini/__init__.py @@ -191,7 +191,7 @@ def _convert(obj: Union[mwp.nodes.Node, mwp.wikicode.Wikicode]) -> str: return render_cite_book(obj) elif name.startswith("ipa"): return "pronounced [{}]".format(_convert(obj.params[0].value)) - elif name == "main": + elif name in {"main", "main article"}: return render_main(obj) else: return default(obj) -- cgit v1.2.3