Function: org-publish--store-crossrefs
org-publish--store-crossrefs is a byte-compiled function defined in
ox-publish.el.gz.
Signature
(org-publish--store-crossrefs OUTPUT BACKEND INFO)
Documentation
Store cross-references for current published file.
OUTPUT is the produced output, as a string. BACKEND is the export back-end used, as a symbol. INFO is the final export state, as a plist.
This function is meant to be used as a final output filter. See
org-publish-org-to.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-publish.el.gz
;;; External Fuzzy Links Resolution
;;
;; This part implements tools to resolve [[file.org::*Some headline]]
;; links, where "file.org" belongs to the current project.
(defun org-publish--store-crossrefs (output _backend info)
"Store cross-references for current published file.
OUTPUT is the produced output, as a string. BACKEND is the export
back-end used, as a symbol. INFO is the final export state, as
a plist.
This function is meant to be used as a final output filter. See
`org-publish-org-to'."
(org-publish-cache-set-file-property
(file-truename (plist-get info :input-file))
:crossrefs
;; Update `:crossrefs' so as to remove unused references and search
;; cells. Actually used references are extracted from
;; `:internal-references', with references as strings removed. See
;; `org-export-get-reference' for details.
(cl-remove-if (lambda (pair) (stringp (car pair)))
(plist-get info :internal-references)))
;; Return output unchanged.
output)