de">
<pre class="code">label:
    chapter:
        - 'Chapter {{ item.number }} '
        - '{{ counters[0] }}.{{ counters[1] }}'
        - ...</pre>
</div>

<p>Extending the previous example, you can use the following templates to format all the heading levels as <code>1.1</code>, <code>1.1.1</code>, <code>1.1.1.1</code>, etc.:</p>

<pre><code> label:
     chapter:
         - 'Chapter {{ item.number }} '
         - '{{ counters[0:2]|join(".") }}'  # 1.1
         - '{{ counters[0:3]|join(".") }}'  # 1.1.1
 