lib/generateMD.js
function processTag(tag, targets) {
  if (tag.description) {
    tag.description = replaceLink(tag.description, targets);
  }
  if (tag.params) {
    tag.params.forEach(function (param) {
      if (param.description) {
        param.description = replaceLink(param.description, targets);
      }
    });
  }
  if (tag.members) {
    tag.members.forEach(function (member) {
      processTag(member, targets);
    });
  }
  if (tag.methods) {
    tag.methods.forEach(function (method) {
      processTag(method, targets);
    });
  }
}
function processTag(tag, targets) {
  if (tag.description) {
    tag.description = replaceLink(tag.description, targets);
  }
  if (tag.params) {
    tag.params.forEach(function (param) {
      if (param.description) {
        param.description = replaceLink(param.description, targets);
      }
    });
  }
  if (tag.members) {
    tag.members.forEach(function (member) {
      processTag(member, targets);
    });
  }
  if (tag.methods) {
    tag.methods.forEach(function (method) {
      processTag(method, targets);
    });
  }
}
function processTag ( tag , targets ) { if ( tag . description ) { tag . description = replaceLink ( tag . description , targets ) ; } if ( tag . params ) { tag . params . forEach ( function ( param ) { if ( param . description ) { param . description = replaceLink ( param . description , targets ) ; } } ) ; } if ( tag . members ) { tag . members . forEach ( function ( member ) { processTag ( member , targets ) ; } ) ; } if ( tag . methods ) { tag . methods . forEach ( function ( method ) { processTag ( method , targets ) ; } ) ; } }
Processes a tag for Markdown replacements.
@param {Object} tag - tag to process
@param {Object} targets - map of targets to use for links (optional)
Processes a tag for Markdown replacements .