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 back-end appropriate for table of contents entries.
PARENT is an export back-end the returned back-end should inherit from.
By default, the back-end 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 back-end appropriate for table of contents entries.
PARENT is an export back-end the returned back-end should inherit
from.
By default, the back-end 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)))))