Function: hywiki-section-to-headline-reference
hywiki-section-to-headline-reference is a byte-compiled function
defined in hywiki.el.
Signature
(hywiki-section-to-headline-reference)
Documentation
Replace file#section dashes with spaces to match to an Org headline.
Does replacement only when not in a programming mode and section contains no spaces.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-section-to-headline-reference ()
"Replace file#section dashes with spaces to match to an Org headline.
Does replacement only when not in a programming mode and section
contains no spaces."
(let ((link (get-text-property (point) 'org-link)))
(if (and link (string-match "#" link))
(let* ((file (substring link 0 (match-beginning 0)))
(section (substring link (match-beginning 0))))
(concat file (hpath:dashes-to-spaces-markup-anchor section)))
link)))