Function: helpful--propertize-bare-links
helpful--propertize-bare-links is a byte-compiled function defined in
helpful.el.
Signature
(helpful--propertize-bare-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-bare-links (docstring)
"Convert URL links in docstrings to buttons."
(replace-regexp-in-string
(rx (group (or string-start space "<"))
(group "http" (? "s") "://" (+? (not (any space))))
(group (? (any "." ">" ")"))
(or space string-end ">")))
(lambda (match)
(let ((space-before (match-string 1 match))
(url (match-string 2 match))
(after (match-string 3 match)))
(concat
space-before
(helpful--button
url
'helpful-link-button
'url url)
after)))
docstring))