When I export this file to HTML with `emacs -Q` and Org 9.5 #+TITLE: example document text before headline * headline! after headline the table of contents appears before "text before headline", although the manual says "Org normally inserts the table of contents directly before the first headline of the file". So shouldn't it be after "text before headline"? Or is it the manual that's wrong?
Kodi Arfer <kodi@arfer.net> writes:
> the table of contents appears before "text before headline", although the manual says "Org normally inserts the table of contents directly before the first headline of the file". So shouldn't it be after "text before headline"? Or is it the manual that's wrong?
Confirmed.
Best,
Ihor
Ihor Radchenko <yantar92@gmail.com> writes: > Kodi Arfer <kodi@arfer.net> writes: > >> the table of contents appears before "text before headline", although the manual says "Org normally inserts the table of contents directly before the first headline of the file". So shouldn't it be after "text before headline"? Or is it the manual that's wrong? > > Confirmed. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c9fc4c03e TOC is placed before document contents, not before first headline. -- 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>