src/index.js
function getTOC(document) {
  var content = "";
  if (document.generateContentsCallback) {
    var callbackContent = document.generateContentsCallback(document.filesForTOC);
    content = markupFiles.getContents(document, callbackContent);
  } else {
    content = markupFiles.getContents(document);
  }
  return replacements(document, replacements(document, content));
}
function getTOC(document) {
  var content = "";
  if (document.generateContentsCallback) {
    var callbackContent = document.generateContentsCallback(document.filesForTOC);
    content = markupFiles.getContents(document, callbackContent);
  } else {
    content = markupFiles.getContents(document);
  }
  return replacements(document, replacements(document, content));
}
function getTOC ( document ) { var content = "" ; if ( document . generateContentsCallback ) { var callbackContent = document . generateContentsCallback ( document . filesForTOC ) ; content = markupFiles . getContents ( document , callbackContent ) ; } else { content = markupFiles . getContents ( document ) ; } return replacements ( document , replacements ( document , content ) ) ; }
Provide the contents of the TOC file.
Provide the contents of the TOC file .