@register.filter
def markdown_thumbnails(value):
    return text_filter('!\[(%(caption)s)?\][ ]?\((%(image)s)\)', value)
Markdown filter that replaces all images with thumbnails.
dataset/ETHPy150Open python-thumbnails/python-thumbnails/thumbnails/templatetags/thumbnails.py/markdown_thumbnails