code: def markdown_editor(selector):
      
      return dict(
          selector=selector,
          extra_settings=mark_safe(simplejson.dumps(
              dict(previewParserPath=reverse('django_markdown_preview')))))
docs: Enable markdown editor for given textarea.
  
      :returns: Editor template context.