From d6ed5567139cc4e32ade78e0a8faa2782c4edaaa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 13 Sep 2018 02:23:39 +0200 Subject: [PATCH] Add clyp embed --- webserver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webserver.py b/webserver.py index 736dce1b..8d0fabb6 100644 --- a/webserver.py +++ b/webserver.py @@ -257,6 +257,11 @@ def page_wiki(key: str): r' ' r'', converted_md) + converted_md = re.sub(r"{https?:\/\/clyp.it\/([a-z0-9]+)}", + r'
' + r' ' + r'
', converted_md) return render_template("wikipage.html", key=key, wiki_page=wiki_page, converted_md=Markup(converted_md), wiki_log=wiki_latest_edit, rygconf=config) elif request.method == "POST":