code: function getCode(err, code) {
        if (err) {
          if (onDone) onDone(err)
          else console.error('>>>' + err);
          return;
        }
  
        if (htmlTemplate) {
          this.cat(fs.readFileSync(htmlTemplate));
  
          let mdCode = ''
          if (context) {
            mdCode = linkify(code, context);
          } else {
            mdCode = code;
          }
          this.replace(mdCode);
        } else {
          if (stylesheet || title) {
            if (titleText == null) titleText = fileName;
            this.cat('<!DOCTYPE html>\n' +
                     '<html>\n' +
                     '<head>\n' +
                     '  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>' + 
                     '  <title>' + titleText + '</title>\n');
            if (stylesheet) {
              this.cat('  <link rel="stylesheet" href="' + stylesheet + '">\n');
            }
            this.cat('</head>\n<body>\n' );
          }
  
          if (context) {
            this.cat( linkify(code, context) );
          } else {
            this.cat( code );
          }
  
          if (stylesheet || title) {
            this.cat( '</body>\n</html>\n' );
          }  
        }
        
        if (this.debug) console.error('>>>finished getting code');
        this.done = true;
        if (onDone) onDone();
      }
docs: ====================================================== Enhance the output of marked with optional header or trailer. Linkify if context specified. ======================================================