{% load i18n wiki_pymdown_tags %}
{% allowed_pymdown_macros as macros %}

{% for macro in macros %}
<h4>{{ macro.short_description }}</h4>
{{ macro.help_text|safe|linebreaks }}
{% if macro.example_code %}
<pre>{{ macro.example_code }}</pre>
{% endif %}
{% if macro.args %}
<table class="table table-compact">
{% for arg,description in macro.args.items %}
  <tr>
    <th>{{ arg }}</th>
    <td>{{ description }}</td>
  </tr>
{% endfor %}
</table>
{% endif %}
{% endfor %}
