Variable: markdown-translate-filename-function
markdown-translate-filename-function is a customizable variable
defined in markdown-mode.el.
Value
identity
Documentation
Function to use to translate filenames when following links.
C-c C-o (markdown-follow-thing-at-point) and M-x markdown-follow-link-at-point (markdown-follow-link-at-point)
call this function with the filename as only argument whenever
they encounter a filename (instead of a URL) to be visited and
use its return value instead of the filename in the link. For
example, if absolute filenames are actually relative to a server
root directory, you can set
markdown-translate-filename-function to a function that
prepends the root directory to the given filename.
This variable was added, or its default value changed, in markdown-mode version 2.4.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defcustom markdown-translate-filename-function #'identity
"Function to use to translate filenames when following links.
\\<markdown-mode-map>\\[markdown-follow-thing-at-point] and \\[markdown-follow-link-at-point]
call this function with the filename as only argument whenever
they encounter a filename (instead of a URL) to be visited and
use its return value instead of the filename in the link. For
example, if absolute filenames are actually relative to a server
root directory, you can set
`markdown-translate-filename-function' to a function that
prepends the root directory to the given filename."
:group 'markdown
:type 'function
:risky t
:package-version '(markdown-mode . "2.4"))