code: def markdown(value, extensions=MARKDOWN_EXTENSIONS):
      
      try:
          import markdown
      except ImportError:
          warnings.warn("The Python markdown library isn't installed.",
                        RuntimeWarning)
          return value
  
      return markdown.markdown(force_text(value), extensions=extensions)
docs: Markdown processing with optionally using various extensions
      that python-markdown supports.
      `extensions` is an iterable of either markdown.Extension instances
      or extension paths.