<h1 class="Ch" id="s1">1 Chapter name</h1>
<p>Some introductory text.</p>
<h2 class="Sh" id="s2">1.1 section name</h2>
<p>Some section text.</p>
<h3 class="Ss" id="s3">1.1.1 subsection name</h3>
<p>Some subsection text.</p>
<div class="toc">
<ul>
<li><a href="#s1">1. Chapter name</a>
<ul>
<li><a href="#s2">1.1. section name</a>
<ul>
<li><a href="#s3">1.1.1. subsection name</a>
</li>
</ul></li>
</ul></li>
</ul>
</div>