-
I want to override the Is it possible to use Markdown in template overriding? {% block announce %}
<div class="under-construction" markdown>
:construction: :construction_site: Site under construction! :construction: :construction_site:
</div>
{% endblock %} I'm assuming it doesn't work. Also, the example in this repository uses HTML directly: mkdocs-material/material/overrides/main.html Lines 8 to 23 in 1357cd2 I just want to know if it's possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, it's not possible, since it's too late in the rendering process – all Markdown has been translated to HTML and Jinja templates only understand HTML, so any Markdown will remain verbatim. It might be doable with a plugin or hook, though. |
Beta Was this translation helpful? Give feedback.
No, it's not possible, since it's too late in the rendering process – all Markdown has been translated to HTML and Jinja templates only understand HTML, so any Markdown will remain verbatim. It might be doable with a plugin or hook, though.