diff --git a/make.el b/make.el index 7eb953c..c803472 100644 --- a/make.el +++ b/make.el @@ -50,6 +50,15 @@ (defvar magic_rb/asset-include "\\(ttf\\|svg\\|jpg\\|gif\\|png\\|css\\|js\\|el\\|nb\\|ipynb\\|pdf\\|xml\\|woff2\\)") +(defun org-export-add-target-blank-to-http-links (text backend info) + "Add target=\"_blank\" to external links." + (when (and + (org-export-derived-backend-p backend 'html) + (string-match "href=\"https?[^\"]+" text) + (not (string-match "target=\"" text))) + (string-match "