diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-08-17 02:04:05 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-08-17 02:04:05 +0200 |
commit | 469353899ae6d7d0c0b7b105c24baaa4841c6328 (patch) | |
tree | 70b1bbcec4d48722afae16140b5abe66685051d4 | |
parent | da34930854d0759ada6fe2727f2e1a159f6b4fdb (diff) | |
download | wikimini-469353899ae6d7d0c0b7b105c24baaa4841c6328.tar.gz wikimini-469353899ae6d7d0c0b7b105c24baaa4841c6328.tar.bz2 wikimini-469353899ae6d7d0c0b7b105c24baaa4841c6328.zip |
Fix ref being shown in quotes
-rw-r--r-- | wikimini/templates/quotes.py | 4 |
1 files 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) |