From 9d5e2bf5e30569e40cbc31365702615867977f6b Mon Sep 17 00:00:00 2001 From: Deimos Date: Mon, 2 Nov 2020 14:56:21 -0700 Subject: [PATCH] Add gemini:// to allowed link protocols --- tildes/tildes/lib/markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildes/tildes/lib/markdown.py b/tildes/tildes/lib/markdown.py index 4f8fbb6..7e69e40 100644 --- a/tildes/tildes/lib/markdown.py +++ b/tildes/tildes/lib/markdown.py @@ -92,7 +92,7 @@ ALLOWED_HTML_TAGS = ( "tr", "ul", ) -ALLOWED_LINK_PROTOCOLS = ("http", "https", "mailto") +ALLOWED_LINK_PROTOCOLS = ("gemini", "http", "https", "mailto") ALLOWED_HTML_ATTRIBUTES_DEFAULT = { "a": ["href", "title"],