html: Wrap headline+content & headline content in containers
Org mode does it.
This commit is contained in:
parent
55b149054d
commit
add727c011
6 changed files with 171 additions and 1 deletions
36
org/testdata/headlines.html
vendored
36
org/testdata/headlines.html
vendored
|
@ -18,9 +18,11 @@
|
|||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div id="outline-container-headline-1" class="outline-2">
|
||||
<h2 id="headline-1">
|
||||
Simple Headline <code class="statistic">[1/2]</code>
|
||||
</h2>
|
||||
<div id="outline-text-headline-1" class="outline-text-2">
|
||||
<ul>
|
||||
<li class="checked">
|
||||
<p>checked</p>
|
||||
|
@ -34,28 +36,42 @@ not just where they are actually meant to be - even here > <code class="stati
|
|||
(Org mode proper does the same)</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-2" class="outline-2">
|
||||
<h2 id="headline-2">
|
||||
<span class="todo">TODO</span>
|
||||
<span class="priority">[B]</span>
|
||||
Headline with todo status & priority
|
||||
</h2>
|
||||
</div>
|
||||
<div id="outline-container-this-will-be-the-id-of-the-headline" class="outline-2">
|
||||
<h2 id="this-will-be-the-id-of-the-headline">
|
||||
<span class="todo">DONE</span>
|
||||
Headline with TODO status
|
||||
</h2>
|
||||
<div id="outline-text-this-will-be-the-id-of-the-headline" class="outline-text-2">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-4" class="outline-2">
|
||||
<h2 id="headline-4">
|
||||
<span class="priority">[A]</span>
|
||||
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
||||
</h2>
|
||||
<div id="outline-text-headline-4" class="outline-text-2">
|
||||
<p>Still outside the drawer</p>
|
||||
<p>This is inside the drawer</p>
|
||||
<p>Still outside the drawer</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-5" class="outline-2">
|
||||
<h2 id="headline-5">
|
||||
<span class="todo">CUSTOM</span>
|
||||
headline with custom status
|
||||
</h2>
|
||||
<div id="outline-text-headline-5" class="outline-text-2">
|
||||
<p>it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following</p>
|
||||
<div class="src src-org">
|
||||
<div class="highlight">
|
||||
|
@ -65,24 +81,44 @@ headline with custom status
|
|||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-7" class="outline-2">
|
||||
<h2 id="headline-7">
|
||||
malformed property drawer
|
||||
</h2>
|
||||
<div id="outline-text-headline-7" class="outline-text-2">
|
||||
<p>:PROPERTIES:
|
||||
not a property</p>
|
||||
<p>:END:</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-8" class="outline-2">
|
||||
<h2 id="headline-8">
|
||||
level limit for headlines to be included in the table of contents
|
||||
</h2>
|
||||
<div id="outline-text-headline-8" class="outline-text-2">
|
||||
<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>
|
||||
<div id="outline-container-headline-9" class="outline-3">
|
||||
<h3 id="headline-9">
|
||||
headline 2 not in toc
|
||||
</h3>
|
||||
<div id="outline-text-headline-9" class="outline-text-3">
|
||||
<div id="outline-container-headline-10" class="outline-4">
|
||||
<h4 id="headline-10">
|
||||
headline 3 not in toc
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-headline-11" class="outline-3">
|
||||
<h3 id="headline-11">
|
||||
anoter headline 2 not in toc
|
||||
</h3>
|
||||
<div id="outline-text-headline-11" class="outline-text-3">
|
||||
<p>you get the gist…</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue