from django import template
import mistune

register = template.Library()


@register.filter
def markdown(value):
    markdown = mistune.Markdown()
    return markdown(value)

from django import template
import mistune

register = template.Library()


@register.filter
def markdown(value):
    markdown = mistune.Markdown()
    return markdown(value)
