code: function determineTitle(title, notitle, lines, info) {
    var defaultTitle = '**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*';
  
    if (notitle) return '';
    if (title) return title;
    return info.hasStart ? lines[info.startIdx + 2] : defaultTitle;
  }
docs: Use document context as well as command line args to infer the title