{% if node.content %}{% with level=node.attrs.level %}
<h{{ level }}>
	{% for item in node.content %}
		{% with template="richtext/"|add:item.type|lower|add:".html" %}
			{% include template with node=item %}
		{% endwith %}
	{% endfor %}
</h{{ level }}>
{% endwith %}{% endif %}