12 lines
184 B
Python
12 lines
184 B
Python
|
from django import template
|
||
|
|
||
|
from ponyconf.utils import markdown_to_html
|
||
|
|
||
|
|
||
|
register = template.Library()
|
||
|
|
||
|
|
||
|
@register.simple_tag
|
||
|
def markdown(value):
|
||
|
return markdown_to_html(value)
|