{% load wiki_thumbnails i18n %}{% comment %} This template is used for the markdown extension that renders images and captions. NB! Watch out for line breaks, markdown might add
s and

s. {% endcomment %}{% with image.current_revision.imagerevision as revision %}{% spaceless %}

{% if size %} {% thumbnail revision.image size upscale=False as thumb %} {{ revision.get_filename }} {% empty %}
{% trans "Image not found" %}
{% endthumbnail %} {% else %} {{ revision.get_filename }} {% endif %}
{{ caption|safe }}
{% endspaceless %}{% endwith %}