Table of Contents

{% macro render_toc(node) %}
  • {{ node.name }} {% if node.content %}: {{ node.content }}{% endif %} {% if node.children %}
      {% for child in node.children %} {{ render_toc(child) }} {% endfor %}
    {% endif %}
  • {% endmacro %}
    {{ content|safe }}