{% extends "donate-form.html" %}
{% block donate_form_intro %}
{% for paragraph in this.intro.source.split('\n') %}
  {% if paragraph|trim() != "" %}
    {# `paragraph|markdown` will render the markdown in an additional set of <p> tags.
       we need to trim whitespace, remove the opening and closing tags
       (the `[3:-4]` slice drops the first 3 and last 4 characters),
       and finally mark it as safe so the html isn't escaped #}
      <p class="text-center mt-3 py-3 border">{{ (paragraph|markdown|trim)[3:-4]|safe }}</p>
    {% endif %}
  {% endfor %}
{% endblock %}
