HTML export: Export #+TITLE as h1 and offset other headlines accordingly

emacs exports #+TITLE as <h1> and all other headlines accordingly as
`lvl + 1` - we'll go with that.
This commit is contained in:
Niklas Fasching 2019-12-22 13:58:19 +01:00
parent b61e49eb85
commit 614307a8f5
8 changed files with 90 additions and 84 deletions

View file

@ -16,9 +16,9 @@
</li>
</ul>
</nav>
<h1 id="headline-1">
<h2 id="headline-1">
Simple Headline <code class="statistic">[1/2]</code>
</h1>
</h2>
<ul>
<li class="checked">
<p>
@ -38,22 +38,22 @@ not just where they are actually meant to be - even here &gt; <code class="stati
</p>
</li>
</ul>
<h1 id="headline-2">
<h2 id="headline-2">
<span class="todo">TODO</span>
<span class="priority">[B]</span>
Headline with todo status &amp; priority
</h1>
<h1 id="this-will-be-the-id-of-the-headline">
</h2>
<h2 id="this-will-be-the-id-of-the-headline">
<span class="todo">DONE</span>
Headline with TODO status
</h1>
</h2>
<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 id="headline-4">
<h2 id="headline-4">
<span class="priority">[A]</span>
Headline with tags &amp; priority&#xa0;&#xa0;&#xa0;<span class="tags"><span>foo</span>&#xa0;<span>bar</span></span>
</h1>
</h2>
<p>
Still outside the drawer
</p>
@ -63,10 +63,10 @@ This is inside the drawer
<p>
Still outside the drawer
</p>
<h1 id="headline-5">
<h2 id="headline-5">
<span class="todo">CUSTOM</span>
headline with custom status
</h1>
</h2>
<p>
it&#39;s possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following
</p>
@ -78,9 +78,9 @@ it&#39;s possible to use <code class="verbatim">#+SETUPFILE</code> - in this cas
</pre>
</div>
</div>
<h1 id="headline-7">
<h2 id="headline-7">
malformed property drawer
</h1>
</h2>
<p>
:PROPERTIES:
not a property