{% for mark in node.marks %}{% with template="richtext/marks/"|add:mark.type|lower|add:".html" %}{% include template with text=node.text attrs=mark.attrs %}{% endwith %}{% empty %}{{ node.text }}{% endfor %}