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
21
org/testdata/headlines.html
vendored
21
org/testdata/headlines.html
vendored
|
@ -14,6 +14,8 @@
|
|||
</li>
|
||||
<li><a href="#headline-7">malformed property drawer</a>
|
||||
</li>
|
||||
<li><a href="#headline-8">level limit for headlines to be included in the table of contents</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h2 id="headline-1">
|
||||
|
@ -88,3 +90,22 @@ not a property
|
|||
<p>
|
||||
:END:
|
||||
</p>
|
||||
<h2 id="headline-8">
|
||||
level limit for headlines to be included in the table of contents
|
||||
</h2>
|
||||
<p>
|
||||
The toc option allows setting a <a href="https://orgmode.org/manual/Export-settings.html">level limit</a>. For this file we set it to 1 - which means that the following headlines
|
||||
won't be included in the table of contents.
|
||||
</p>
|
||||
<h3 id="headline-9">
|
||||
headline 2 not in toc
|
||||
</h3>
|
||||
<h4 id="headline-10">
|
||||
headline 3 not in toc
|
||||
</h4>
|
||||
<h3 id="headline-11">
|
||||
anoter headline 2 not in toc
|
||||
</h3>
|
||||
<p>
|
||||
you get the gist…
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue