code: func formatCommitDesc(desc string) template.HTML {
  	chunks := []formatChunk{{str: desc}}
  	// Replace BUG: lines with URLs by rewriting all bug numbers with
  	// links. Run this first so later rules do not interfere with it. This
  	// allows a line like the following to work:
  	//
  	// Bug: https://crbug.com/1234, 5678
  	chunks = replaceAllInChunks(chunks, rBUGLINE, func(s string) template.HTML {
  		sChunks := []formatChunk{{str: s}}
  		// The call later in the parent function will not reach into
  		// sChunks, so run it separately.
  		sChunks = replaceLinkChunks(sChunks)
  		sChunks = replaceAllInChunks(sChunks, rBUG, func(sBug string) template.HTML {
  			path := strings.Replace(strings.Replace(sBug, "#", "", 1), ":", "/", 1)
  			return makeLink(sBug, "https://crbug.com/"+path)
  		})
  		return chunksToHTML(sChunks)
  	})
  	chunks = replaceLinkChunks(chunks)
  	return chunksToHTML(chunks)
  }
docs: // formatCommitDesc takes a commit message and adds embellishments such as:
  // * Linkify https:// URLs
  // * Linkify bug numbers using https://crbug.com/
  // * Linkify b/ bug links
  // * Linkify crbug/ bug links