def markup(value):
    """
    Processes markdown text and returns HTML.  Usage::
    
        {{ object.content|markup|safe }}
    """
    return convert(value)
 def render(self, context):
     obj = self.obj.resolve(context)
     data = getattr(obj, self.field, '')
     content = convert(data, obj, context)
     
     if self.var_name:
         context[self.var_name] = content
         return ''
     return content