Add support for Table of Contents
This commit is contained in:
parent
eb7db9b968
commit
d921a68a55
7 changed files with 218 additions and 41 deletions
30
org/testdata/headlines.html
vendored
30
org/testdata/headlines.html
vendored
|
@ -1,4 +1,26 @@
|
|||
<h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#headline-1">Simple Headline <code class="statistic">[1/2]</code></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-2">Headline with todo status & priority</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#this-will-be-the-id-of-the-headline">Headline with TODO status</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-4">Headline with tags & priority</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-5">headline with custom status</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-6">excluded headline</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h1 id="headline-1">
|
||||
Simple Headline <code class="statistic">[1/2]</code>
|
||||
</h1>
|
||||
<ul>
|
||||
|
@ -20,7 +42,7 @@ not just where they are actually meant to be - even here > <code class="stati
|
|||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>
|
||||
<h1 id="headline-2">
|
||||
<span class="todo">TODO</span>
|
||||
<span class="priority">[B]</span>
|
||||
Headline with todo status & priority
|
||||
|
@ -32,7 +54,7 @@ Headline with TODO status
|
|||
<p>
|
||||
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a>
|
||||
</p>
|
||||
<h1>
|
||||
<h1 id="headline-4">
|
||||
<span class="priority">[A]</span>
|
||||
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
||||
</h1>
|
||||
|
@ -45,7 +67,7 @@ This is inside the drawer
|
|||
<p>
|
||||
Still outside the drawer
|
||||
</p>
|
||||
<h1>
|
||||
<h1 id="headline-5">
|
||||
<span class="todo">CUSTOM</span>
|
||||
headline with custom status
|
||||
</h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue