packages/idyll-compiler/src/processors/post.js
function autoLinkifyHelper(node) {
  if (typeof node === 'string') {
    return hyperLinkifiedVersion(node);
  } else if (
    ['a', 'code', 'pre', 'equation'].indexOf(getNodeName(node).toLowerCase()) >
    -1
  ) {
    return node;
  } else {
    return modifyChildren(node, autoLinkifyHelper);
  }
}
function autoLinkifyHelper(node) {
  if (typeof node === 'string') {
    return hyperLinkifiedVersion(node);
  } else if (
    ['a', 'code', 'pre', 'equation'].indexOf(getNodeName(node).toLowerCase()) >
    -1
  ) {
    return node;
  } else {
    return modifyChildren(node, autoLinkifyHelper);
  }
}
function autoLinkifyHelper ( node ) { if ( typeof node === 'string' ) { return hyperLinkifiedVersion ( node ) ; } else if ( [ 'a' , 'code' , 'pre' , 'equation' ] . indexOf ( getNodeName ( node ) . toLowerCase ( ) ) > - 1 ) { return node ; } else { return modifyChildren ( node , autoLinkifyHelper ) ; } }
Helper function for autoLinkify to check the type of node and modify them if necessary.
@param {*} node    node to be checked and modified if necessary.
@return modified node, if modification was required, else returns node.
Helper function for autoLinkify to check the type of node and modify them if necessary .