Brian Powell <powe...@hawaii.edu> writes: > It seems that the following commit broke the ability to link to a figure > with a caption. > > commit 7048876f6fa519513763c83bc5baa791420cddab > Author: Ihor Radchenko <yanta...@posteo.net> > Date: Tue Dec 13 11:44:22 2022 +0300 > > org-export-get-ordinal: Do not ignore ELEMENT type when TYPES is > given > > * lisp/ox.el (org-export-get-ordinal): Append ELEMENT type to TYPES, > when TYPES is non-nil. > > I have a simple file with a figure and image link. The figure has a > #+name and #+caption. If I add a link to the figure name in the > document, then exporting to HTML fails. Prior commits did not have any issue.
Thanks for reporting! I was unable to reproduce the problem with the given recipe, but I do see what is wrong looking at the backtrace. Fixed on bugfix now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=db34a7d83 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>