Function: hywiki-strip-org-link
hywiki-strip-org-link is a byte-compiled function defined in
hywiki.el.
Signature
(hywiki-strip-org-link LINK-STR)
Documentation
Return the hy:HyWikiWord#section part of an Org link string.
Strip any square bracket delimiters, description and leading or trailing whitespace, and type prefix. Return nil, if no match.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-strip-org-link (link-str)
"Return the hy:HyWikiWord#section part of an Org link string.
Strip any square bracket delimiters, description and leading or
trailing whitespace, and type prefix. Return nil, if no match."
(when (and (stringp link-str) (not (string-empty-p link-str)))
(string-remove-prefix
(concat hywiki-org-link-type ":")
(let ((blank "[[:blank:]\r\n]+"))
(string-trim (car (delete ""
(mapcar (lambda (str)
(string-trim (replace-regexp-in-string blank " " str t t)
blank blank))
(split-string link-str "\\[\\[\\|\\]\\[\\|\\]\\]")))))))))