@register.filter(is_safe=True)
def gfm(value):
 html = markdown(value, extensions=['mdx_gfm'])
 return mark_safe(html)

@ register . filter ( is_safe = True ) def gfm ( value ) : html = markdown ( value , extensions = [ 'mdx_gfm' ] ) return mark_safe ( html )
render text as github-flavored markdown .