Function: hywiki--org-link-html-format
hywiki--org-link-html-format is a byte-compiled function defined in
hywiki.el.
Signature
(hywiki--org-link-html-format PATH-STEM SUFFIX DESC INFO)
Documentation
Format an html link using Org ids.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki--org-link-html-format (path-stem suffix desc info)
"Format an html link using Org ids."
(let* ((raw-heading (and suffix (not (string-empty-p suffix)) (substring suffix 1)))
(heading (and raw-heading (hpath:dashes-to-spaces-markup-anchor raw-heading)))
(link-obj (org-element-create
'link
(list
:type "file"
:path (concat path-stem ".org")
:search-option (and heading (concat "*" heading))
:format 'bracket)))
;; Export as HTML
(exported (org-export-data link-obj info))
;; Extract the href
(href (if (string-match "href=\"\\([^\"]+\\)\"" exported)
(match-string 1 exported)
exported)))
(format "<a href=\"%s\">%s</a>" href desc)))