Open neuhalje opened 3 weeks ago
Thanks, this is a very useful bug report. I have a feeling this may be a MWE for a problem I've been seeing myself.
I'll try to get to it sooner rather than later :)
The exporters :filter-parse-tree
will be called with the hidden things already hidden.
(defun org-export--annotate-info (backend info &optional subtreep visible-only ext-plist)
;;...
(setq tree
(org-export-filter-apply-functions
(plist-get info :filter-parse-tree) tree info))
;; ...
org-glossary--prepare-buffer
gets called with the backend
as a parameter. Maybe we could in org-glossary--prepare-buffer
:filter-parse-tree
in the backend
:filter-parse-tree
callback "do the thing" via the API
Observation
The following snippet, when exported with org-glossary enabled, will produce dead references in the result. Example with
org-export-as-org
.Observed Export Result
After export
[[gr;37;2][2]]
and[[gr;37;3][3]]
are dangling references.Expected Export Result
After export only
[[gr;37;1][1]]
is referenced.Analysis
The export settings will exclude the
Not exported :noexport:
section and the task from export.Both the occurence of
DEMO
in the task and in the:noexport:
section occur in the glosssary.This also happens in PDF export.
Work around(?)
Not tried. But if first the document is exported with
orrg->org
and then run the glossary, the issue should be resolved.