Function: markdown-setup-wiki-link-hooks
markdown-setup-wiki-link-hooks is a byte-compiled function defined in
markdown-mode.el.
This function is obsolete since 2.8.
Signature
(markdown-setup-wiki-link-hooks)
Documentation
Add or remove hooks for fontifying wiki links.
These are only enabled when markdown-wiki-link-fontify-missing is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-setup-wiki-link-hooks ()
"Add or remove hooks for fontifying wiki links.
These are only enabled when `markdown-wiki-link-fontify-missing' is non-nil."
;; Anytime text changes make sure it gets fontified correctly
(with-no-warnings
(if (and markdown-enable-wiki-links
markdown-wiki-link-fontify-missing)
(add-hook 'after-change-functions
#'markdown-check-change-for-wiki-link-after-change t t)
(remove-hook 'after-change-functions
#'markdown-check-change-for-wiki-link-after-change t))
;; If we left the buffer there is a really good chance we were
;; creating one of the wiki link documents. Make sure we get
;; refontified when we come back.
(if (and markdown-enable-wiki-links
markdown-wiki-link-fontify-missing)
(progn
(add-hook 'window-configuration-change-hook
#'markdown-fontify-buffer-wiki-links t t)
(markdown-fontify-buffer-wiki-links))
(remove-hook 'window-configuration-change-hook
#'markdown-fontify-buffer-wiki-links t)
(with-no-warnings
(markdown-unfontify-region-wiki-links (point-min) (point-max))))) )