{{ section.heading|ui }}
{% else %}{{ section.heading|ui }}
{% endif %}{% endif %} {% if section.kind in ['table', 'compact_table'] %}{% include 'components/table_figure.html' %} {% elif section.kind == 'details' %}{% include 'components/details.html' %} {% elif section.kind == 'grid' %}{% include 'components/grid.html' %} {% elif section.kind in ['text', 'summary', 'description', 'references'] %}{% if section.format == 'markdown' %}{{ section.text|ui|markdown }}{% else %}{{ section.text|ui }}{% endif %}
{% elif section.kind == 'image' %}{% with asset=section %}{% include 'components/image.html' %}{% endwith %}
{% endif %}
{% for asset in section.images %}{% include 'components/image.html' %}{% endfor %}