Function: forge--markdown-translate-filename-function
forge--markdown-translate-filename-function is a natively compiled
function defined in forge-topic.el.
Signature
(forge--markdown-translate-filename-function FILE)
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/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))))