diff --git a/aqt/editor.py b/aqt/editor.py index 86d1dcdc7..5e3aa10af 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -921,6 +921,12 @@ class EditorWebView(AnkiWebView): if link: return link + # not media; add it as a normal link if pasting with shift + link = '{}'.format( + url, html.escape(txt) + ) + return link + # normal text; convert it to HTML txt = html.escape(txt) txt = txt.replace("\n", "
")