Function: helpful--propertize-links

helpful--propertize-links is a byte-compiled function defined in helpful.el.

Signature

(helpful--propertize-links DOCSTRING)

Documentation

Convert URL links in docstrings to buttons.

Source Code

;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--propertize-links (docstring)
  "Convert URL links in docstrings to buttons."
  (replace-regexp-in-string
   (rx "URL `" (group (*? any)) "'")
   (lambda (match)
     (let ((url (match-string 1 match)))
       (concat "URL "
               (helpful--button
                url
                'helpful-link-button
                'url url))))
   docstring))