{% 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

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 #}

{{ (paragraph|markdown|trim)[3:-4]|safe }}

{% endif %} {% endfor %} {% endblock %}