I'm working with Nunjucks templates in Eleventy. The page layout consists of a main content
area and an aside
. I am able to use Markdown for the content but cannot find a way to use Markdown for the aside. It would seem that only one source can be Markdown; any other sources included in the template must be Nunjucks templates.
index.njk:
<article>
{{ content | safe }}
</article>
<aside>
{% include "aside.md" %}
</aside>
aside.md:
# Aside.
Result:
<article>
<p>This is the content from the upstream Markdown.</p>
</article>
<aside>
# Aside.
</aside>
The aside is still raw Markdown. How can I include processed Markdown?
I'm new to all these technologies and have a feeling I am missing something basic.