Fix table of contents for hugo

Hugo has some hardcoded checks that have to be fulfilled in its Table of
Contents extraction workflow (helpers/content ExtractTOC). It's easier this
way...
This commit is contained in:
Niklas Fasching 2018-12-26 18:53:31 +01:00
parent 940b1c7125
commit d3d3b6c593
4 changed files with 34 additions and 65 deletions

View file

@ -1,84 +1,60 @@
<nav>
<ul>
<li>
<a href="#headline-1">issues from goorgeous (free test cases, yay!)</a>
<li><a href="#headline-1">issues from goorgeous (free test cases, yay!)</a>
<ul>
<li>
<a href="#headline-2">#19: Support #+HTML</a>
<li><a href="#headline-2">#19: Support #+HTML</a>
</li>
<li>
<a href="#headline-3">#29: Support verse block</a>
<li><a href="#headline-3">#29: Support verse block</a>
</li>
<li>
<a href="#headline-4">#31: Support #+INCLUDE</a>
<li><a href="#headline-4">#31: Support #+INCLUDE</a>
</li>
<li>
<a href="#headline-5">#33: Wrong output when mixing html with Org mode</a>
<li><a href="#headline-5">#33: Wrong output when mixing html with Org mode</a>
</li>
<li>
<a href="#headline-6">#46: Support for symbols like ndash and mdash</a>
<li><a href="#headline-6">#46: Support for symbols like ndash and mdash</a>
</li>
<li>
<a href="#headline-7">#47: Consecutive <code>code</code> wrapped text gets joined</a>
<li><a href="#headline-7">#47: Consecutive <code>code</code> wrapped text gets joined</a>
</li>
<li>
<a href="#headline-8">#50: LineBreaks in lists are preserved</a>
<li><a href="#headline-8">#50: LineBreaks in lists are preserved</a>
</li>
<li>
<a href="#headline-9">#68: Quote block with inline markup</a>
<li><a href="#headline-9">#68: Quote block with inline markup</a>
</li>
<li>
<a href="#headline-10">#72: Support for #+ATTR_HTML</a>
<li><a href="#headline-10">#72: Support for #+ATTR_HTML</a>
</li>
<li>
<a href="#headline-11">#75: Not parsing nested lists correctly</a>
<li><a href="#headline-11">#75: Not parsing nested lists correctly</a>
</li>
<li>
<a href="#headline-12">#77: Recognize <code class="verbatim">code</code>— as code plus dash</a>
<li><a href="#headline-12">#77: Recognize <code class="verbatim">code</code>— as code plus dash</a>
</li>
<li>
<a href="#headline-13">#78: Emphasis at beginning of line</a>
<li><a href="#headline-13">#78: Emphasis at beginning of line</a>
</li>
<li>
<a href="#headline-14">#82: Crash on empty headline</a>
<li><a href="#headline-14">#82: Crash on empty headline</a>
<ul>
<li>
<a href="#headline-15"></a>
<li><a href="#headline-15"></a>
</li>
</ul>
</li>
<li>
<a href="#headline-16">#84: Paragraphs that are not followed by an empty line are not parsed correctly</a>
<li><a href="#headline-16">#84: Paragraphs that are not followed by an empty line are not parsed correctly</a>
<ul>
<li>
<a href="#headline-17">Foo</a>
<li><a href="#headline-17">Foo</a>
</li>
<li>
<a href="#headline-18">Bar</a>
<li><a href="#headline-18">Bar</a>
</li>
</ul>
</li>
<li>
<a href="#headline-19">#86: Multiple hyphens not converted to dashes</a>
<li><a href="#headline-19">#86: Multiple hyphens not converted to dashes</a>
</li>
<li>
<a href="#headline-20">#87: Markup in footnotes is rendered literally</a>
<li><a href="#headline-20">#87: Markup in footnotes is rendered literally</a>
</li>
</ul>
</li>
<li>
<a href="#headline-21">issues (wrongly) filed with hugo</a>
<li><a href="#headline-21">issues (wrongly) filed with hugo</a>
<ul>
<li>
<a href="#headline-22">#3874 exporting images in org mode</a>
<li><a href="#headline-22">#3874 exporting images in org mode</a>
</li>
<li>
<a href="#headline-23">#4006 source code blocks in org not rendered correctly</a>
<li><a href="#headline-23">#4006 source code blocks in org not rendered correctly</a>
</li>
</ul>
</li>
<li>
<a href="#headline-24">Footnotes</a>
<li><a href="#headline-24">Footnotes</a>
</li>
</ul>
</nav>