When using a {% for ... %} loop inside an included nunjucks template (e.g. {% include ... %}) in eleventy, the generated contents of the loop are rendered inside <pre><code>...</code></pre> blocks.
Here is the contents of the include:
src/includes/recipe-ingredients.html
<aside id="ingredients" aria-label="ingredients">
<h3>Ingredients</h3>
<ul>
{% for ingredientData in recipe.ingredients %}
<li><span class="measure">{{ ingredientData.displayQty }}</span>
<span class="ingredient">{{ ingredientData.ingredient }}</span></li>
{% endfor %}
</ul>
</aside>
... and this is what gets generated:
<!-- Rest of generated HTML -->
<aside id="ingredients" aria-label="ingredients">
<h3>Ingredients</h3>
<ul>
<pre><code><li><span class="measure">2</span>
<span class="ingredient">cinnamon</span></li>
<li><span class="measure">3/4</span>
<span class="ingredient">sugar</span></li>
</code></pre>
</ul>
</aside>
<!-- Rest of generated HTML -->
Why is this happening and how do I prevent it?