hunk.code_window: // - searchTerm - If specified, this word is highlighted in the resulting html. Defaults to nothing.
   // - mentionHighlight - Specifies whether or not to highlight mentions of the current user. Defaults to true.
   // - singleline - Specifies whether or not to remove newlines. Defaults to false.
   export function formatText(text, options = {}) {
  
hunk.labels: keep keep add keep
hunk.after_edit: // - markdown - Enables markdown parsing. Defaults to true.
  
hunk.file_path: web/react/utils/text_formatting.jsx
hunk.type: add
file: // Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  const marked = require('marked');
  
  export class MattermostMarkdownRenderer extends marked.Renderer {
      link(href, title, text) {
          if (href.lastIndexOf('http', 0) !== 0) {
              href = `http://${href}`;
          }
  
          return super.link(href, title, text);
      }
  }
  