Function: markdown-fontify-inline-links
markdown-fontify-inline-links is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-fontify-inline-links LAST)
Documentation
Add text properties to next inline link from point to LAST.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-fontify-inline-links (last)
"Add text properties to next inline link from point to LAST."
(when (markdown-match-generic-links last nil)
(let* ((link-start (match-beginning 3))
(link-end (match-end 3))
(url-start (match-beginning 6))
(url-end (match-end 6))
(url (match-string-no-properties 6))
(title-start (match-beginning 7))
(title-end (match-end 7))
(title (match-string-no-properties 7))
(url-char (markdown--first-displayable markdown-url-compose-char)))
(dolist (g '(1 2 4 5 8))
(when (match-end g)
(add-text-properties (match-beginning g) (match-end g) markdown--markup-props)
(add-face-text-property (match-beginning g) (match-end g) 'markdown-markup-face)))
;; Preserve existing faces applied to link part (e.g., inline code)
(when link-start
(add-text-properties link-start link-end (markdown--link-props url title))
(add-face-text-property link-start link-end 'markdown-link-face))
(when url-start
(add-text-properties url-start url-end (markdown--url-props))
(add-face-text-property url-start url-end 'markdown-url-face))
(when title-start
(add-text-properties url-end title-end markdown--title-props)
(add-face-text-property url-end title-end 'markdown-link-title-face))
(when (and markdown-hide-urls url-start)
(compose-region url-start (or title-end url-end) url-char))
t)))