Exemple:

<h1>1</h1>
<h3>2</h3>
<h1>3</h1>

While render that:

<ul>
	<li><a href="#-2">1</a>
<ul>
<ul>
	<li><a href="#-3">2</a></li>
</ul>
</ul></li>
</ul>
	<li><a href="#-4">3</a></li>

Inside of this

<ul>
	<li><a href="#-2">1</a>
<ul>
<ul>
	<li><a href="#-3">2</a></li>
</ul>
</ul></li>
	<li><a href="#-4">3</a></li>
</ul>

I've try to solve it, but at this time no success :(

Comments

billyboylindien’s picture

Status: Active » Fixed

I think, I've found the mistake ...

It seems to come from html filter.

deviantintegral’s picture

Note that given your input above, you should get an extra set of ul's - the code assumes that your headings are well structured, and that you don't skip any heading levels. But glad you've got it working!

--Andrew

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.