   insertToc(
     editor: editor
     range: [point, point]
-    create: true
     tocOptions: getDefaultTocOptions()
   )
 

    #{TOC_END}
    """

  toc += "\n\n" if create
  editor.setTextInBufferRange(range, toc)

# Public

  tocOptions = {}
  if match = tocStartText.match(TOC_START_REGEXP)
    tocOptions = deserializeTocOptions(match[1])
    return unless tocOptions.update

  insertToc(
    editor: editor
    range: range
    tocOptions: _.defaults(tocOptions, getDefaultTocOptions())
  )

