…
This commit is contained in:
parent
613efa90df
commit
a6e848bcf2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
"Remove generate file:// in relative links."
|
"Remove generated 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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue