Function: kexport:html-file-klink
kexport:html-file-klink is a byte-compiled function defined in
kexport.el.
Signature
(kexport:html-file-klink STRING)
Documentation
Convert STRING containing a klink with a file reference to Html format.
Works exclusively within a call to replace-regexp-in-string.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kexport.el
(defun kexport:html-file-klink (string)
"Convert STRING containing a klink with a file reference to Html format.
Works exclusively within a call to `replace-regexp-in-string'."
(let ((filename (substring string (match-beginning 1)
(match-end 1))))
(if (equal filename (file-name-nondirectory
kexport:input-filename))
"<a href=\"#k\\2\">\\&</a>"
(format "<a href=\"file://%s#k\\2\">\\&</a>"
(expand-file-name filename
(when kexport:input-filename
(file-name-directory
kexport:input-filename)))))))