 just above the anchor. Therefore we
    directly continue with the children of the anchor.
  -->
  {% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
    {% set toc_ = (toc_ | first).children %}
  {% endif %}

  <!-- Get maximum depth for the table of contents -->
  {% set max_toc_depth = config.theme.max_toc_depth %}
  {% if max_toc_depth is lessthan 1 %}
    {% set max_toc_depth = 100 %}
  {% endif %}

  <!-- Render item list -->
  {% if toc_ | first is defined %}
    <label class="md-nav_