code: def to_html(text, config, search_path):
      
      processor = misaka.Markdown(HtmlRenderer(config, search_path),
                                  extensions=ENABLED_EXTENSIONS)
  
      text = processor(text)
      if not config.get('no_smartquotes'):
          text = misaka.smartypants(text)
  
      return flask.Markup(text)
docs: Convert Markdown text to HTML