{{ topic.icon }}

{{ topic.title }}

{{ topic.subtitle }}

{% for section in topic.sections %}
{{ "%02d"|format(loop.index) }}

{{ section.heading }}

{% if section.type == "text" %}
{{ section.content | safe }}
{% elif section.type == "math" %} {% for item in section.content %}
{{ item.label }}
$$ {{ item.formula }} $$
{{ item.explanation }}
{% endfor %} {% elif section.type == "graph" %} {% if section.description %}

{{ section.description | safe }}

{% endif %}
{% elif section.type == "code" %}
{{ section.language | upper }}
{{ section.content }}
{% elif section.type == "list" %}
{% for item in section['entries'] %}
{{ item.title }}
{{ item.detail }}
{% endfor %}
{% endif %}
{% endfor %}