10 lines
224 B
Python
10 lines
224 B
Python
|
import markdown
|
||
|
from django import template
|
||
|
from django.template.defaultfilters import stringfilter
|
||
|
|
||
|
register = template.Library()
|
||
|
|
||
|
@register.filter(name='md')
|
||
|
@stringfilter
|
||
|
def md(value):
|
||
|
return markdown.markdown(value)
|