   return unless confirm('Are you ready to debug Atom Beautify?\n\n' +
   'Warning: This will change your current clipboard contents.')
   debugInfo = ""
+  headers = []
+  tocEl = "<TABLEOFCONTENTS/>"
   addInfo = (key, val) ->
-    debugInfo += "**#{key}**: #{val}\n\n"
+    if key?
+      debugInfo += "**#{key}**: #{val}\n\n"
+    else
+      debugInfo += "#{val}\n\n"
   addHeader = (level, title) ->
     debugInfo += "#{Array(level+1).join('#')} #{title}\n\n"
+    headers.push({
+      level, title
+      })
   addHeader(1, "Atom Beautify - Debugging information")
   debugInfo += "The following debugging information was " +
   "generated by `Atom Beautify` on `#{new Date()}`." +
+  "\n\n---\n\n" +
+  tocEl +
   "\n\n---\n\n"
 
   # Platform

        result, "original", "beautified")
      addInfo('Original vs. Beautified Diff', "\n```#{codeBlockSyntax}\n#{diff}\n```")

      addInfo('Logs', "\n```\n#{logs}\n```")

      # Save to clipboard
      atom.clipboard.write(debugInfo)

    "```json\n#{JSON.stringify(preTransformedOptions, undefined, 4)}\n```")
    if selectedBeautifier
      addHeader(3, 'Final Options')
      addInfo(null,
        "Final combined and transformed options that are used\n" +
        "```json\n#{JSON.stringify(finalOptions, undefined, 4)}\n```")

    #
    logs = ""
