MkDocs plugin that allows to use Markdown in your theme’s Jinja2 templates
python3 -m pip install git+https://github.com/twardoch/mkdocs-markdown-in-template-pluginIn mkdocs.yaml (as early as possible in the list of plugins):
plugins:
- markdown-in-templateIn any HTML template partial, you can now include Markdown enclosed in {% md %} and {% mdend %}:
<article>
{% md %}
# Heading
Regular and **bold** text
{% mdend %}
</article>Note: The plugin will remove any indentation equal to the indentation of the first line of the Markdown.