with the right docstring this time

This commit is contained in:
mez 2025-04-20 11:19:18 +01:00
parent ba3fb5be9f
commit 613efa90df

View file

@ -552,7 +552,7 @@ Get rid of =file://= using the same method.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun my-org-export-correct-file-links (text backend info) (defun my-org-export-correct-file-links (text backend info)
"Add target=\"_blank\" to external links." "Remove generate file:// in relative links."
(when (and (when (and
(org-export-derived-backend-p backend 'html) (org-export-derived-backend-p backend 'html)
(string-match "href=\"file[^\"]+" text)) (string-match "href=\"file[^\"]+" text))