Function: denote-link--ol-export-get-relative-html

denote-link--ol-export-get-relative-html is a byte-compiled function defined in denote.el.

Signature

(denote-link--ol-export-get-relative-html PATH)

Documentation

Return relative PATH for Org export purposes.

Add an .html extension if PATH is an Org file.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-link--ol-export-get-relative-html (path)
  "Return relative PATH for Org export purposes.
Add an .html extension if PATH is an Org file."
  (file-relative-name
   (if (string= (file-name-extension path) "org")
       (concat (file-name-sans-extension path) ".html")
     path)))