Rudolf Adamkovič <rud...@adamkovic.org> writes:

> Ihor Radchenko <yanta...@posteo.net> writes:
>
>> Should be relative level, I think.
>
> I am a bit lost here, on both why and how. :)

See `org-export-collect-headlines' and how it uses
`org-export-get-relative-level' to determine whether a given heading is
too deeply nested to be included into TOC.

`org-export-get-relative-level' is also used within individual backends
when dealing with :with-toc export option.

-- 
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>

Reply via email to