Filter: Render Markdown content to HTML

How to render a variable as HTML in AnQi CMS template?

renderThe filter can render a variable into HTML.

Usage

renderHow to use the filter:

{{ obj|render }}

For example, if we need to render the introduction field of the custom field in the document as HTML, we can write it like this:

{% archiveDetail introduction with name="introduction" %}
{{introduction|render|safe}}

or

{# 无序的map对象 #}
<div>
    {% archiveParams params with sorted=false %}
        <div>{{params.introduction.Name}}:{{params.introduction.Value|render|safe}}</div>
    {% endarchiveParams %}
</div>