html: Allow limiting level of headlines to be included in toc
The org mode toc OPTION does not just support true/false - it also allows specifying the max headline level [1] to be included in the toc. [1] headline level as seen in org mode - not the html tag level
This commit is contained in:
parent
7a2cd1abb1
commit
f1361615ed
6 changed files with 59 additions and 5 deletions
8
org/testdata/misc.html
vendored
8
org/testdata/misc.html
vendored
|
@ -131,6 +131,7 @@ src block
|
|||
<div class="highlight">
|
||||
<pre>
|
||||
#+SETUPFILE: setup_file_org
|
||||
#+OPTIONS: toc:1
|
||||
* Simple Headline [1/2]
|
||||
- [X] checked
|
||||
- [ ] unchecked
|
||||
|
@ -163,6 +164,13 @@ By default =EXCLUDE_TAGS= is just =:noexport:=.
|
|||
:PROPERTIES:
|
||||
not a property
|
||||
:END:
|
||||
* level limit for headlines to be included in the table of contents
|
||||
The toc option allows setting a [[https://orgmode.org/manual/Export-settings.html][level limit]]. For this file we set it to 1 - which means that the following headlines
|
||||
won't be included in the table of contents.
|
||||
** headline 2 not in toc
|
||||
*** headline 3 not in toc
|
||||
** anoter headline 2 not in toc
|
||||
you get the gist...
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue