Function: forge--markdown-translate-filename-function
forge--markdown-translate-filename-function is a byte-compiled
function defined in forge-topic.el.
Signature
(forge--markdown-translate-filename-function FILE)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(defun forge--markdown-translate-filename-function (file)
(if (string-match-p "\\`https?://" file)
file
(let ((host (oref (forge-get-repository :tracked) forge))) ;aka webhost
(concat (if (member host ghub-insecure-hosts) "http://" "https://")
host
(and (not (string-prefix-p "/" file)) "/")
file))))