fix: can't open external links like zotero and mail clients

close #3186
close #3235
This commit is contained in:
Tienson Qin
2021-11-22 19:50:01 +08:00
parent 0273a18a5f
commit 0452c7ce3e
2 changed files with 11 additions and 1 deletions

View File

@@ -887,7 +887,7 @@
(not (string/includes? s "."))
(page-reference (:html-export? config) s config label)
(util/safe-re-find #"(?i)^http[s]?://" s)
(util/url? s)
(->elem :a {:href s
:data-href s
:target "_blank"}