From 469353899ae6d7d0c0b7b105c24baaa4841c6328 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 17 Aug 2021 02:04:05 +0200 Subject: Fix ref being shown in quotes --- wikimini/templates/quotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wikimini/templates/quotes.py b/wikimini/templates/quotes.py index 7c1429d..b51d92d 100644 --- a/wikimini/templates/quotes.py +++ b/wikimini/templates/quotes.py @@ -7,7 +7,7 @@ def tmpl_quote(wikimini, obj): text = obj.get("text", None) if not text: return "" - content = text.value.strip_code() + content = wikimini._convert(text.value) lines = content.split("\n") return "\n".join(f"> {line}" for line in lines) @@ -19,7 +19,7 @@ registry.insert("quote", tmpl_quote) def tmpl_cquote(wikimini, obj): """Renders the ``{{cquote|...}}`` template.""" text = obj.params[0] - content = text.value.strip_code() + content = wikimini._convert(text.value) lines = content.split("\n") return "\n".join(f"> {line}" for line in lines) -- cgit v1.2.3