Function: org-export-toc-entry-backend
org-export-toc-entry-backend is a byte-compiled function defined in
ox.el.gz.
Signature
(org-export-toc-entry-backend PARENT &rest TRANSCODERS)
Documentation
Return an export backend appropriate for table of contents entries.
PARENT is an export backend the returned backend should inherit from.
By default, the backend removes footnote references and targets. It also changes links and radio targets into regular text. TRANSCODERS optional argument, when non-nil, specifies additional transcoders. A transcoder follows the pattern (TYPE . FUNCTION) where type is an element or object type and FUNCTION the function transcoding it.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-toc-entry-backend (parent &rest transcoders)
"Return an export backend appropriate for table of contents entries.
PARENT is an export backend the returned backend should inherit
from.
By default, the backend removes footnote references and targets.
It also changes links and radio targets into regular text.
TRANSCODERS optional argument, when non-nil, specifies additional
transcoders. A transcoder follows the pattern (TYPE . FUNCTION)
where type is an element or object type and FUNCTION the function
transcoding it."
(declare (indent 1))
(org-export-create-backend
:parent parent
:transcoders
(append transcoders
`((footnote-reference . ,#'ignore)
(link . ,(lambda (l c i)
(or c
(org-export-data
(org-element-property :raw-link l)
i))))
(radio-target . ,(lambda (_r c _) c))
(target . ,#'ignore)))))