{# Table of contents: a nested list of the page's h2-h4 headings. #} {% macro toc_list(entries) %} {% endmacro %} {% macro toc(entries) %} {% if entries | length >= 2 %}
Contents {{ toc_list(entries) }}
{% endif %} {% endmacro %} {# A Markdown example: the source as a code block, then the same text rendered. In a page: {% call example() %}*Hello*{% endcall %} #} {% macro example() %} ````markdown {{ caller() | trim("\n") }} ````
{{ caller() | trim("\n") }}
{% endmacro %}