Max Nikulin <maniku...@gmail.com> writes: >> Yes, sure. It is fine to reuse an existing user option. Though reading >> through its docstring and the code, I cannot tell what this is doing >> exactly. Is it applying to all HTML elements, or just headings? >> >> On my end, I have that option set to nil, but exported headings do use >> their CUSTOM_ID. > > It seems it was broken by > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5e9953fa0e > > `user-label' is set to CUSTOM_ID when it is set, so checking the > variable is not effective any more.
Nothing is broken. CUSTOM_IDs for _headings_ were used unconditionally. org-html-prefer-user-labels ... Independently of this variable, however, CUSTOM_ID are always used as a reference. -- 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>