lib/ReactViews/Custom/registerCustomComponentTypes.js
function getSourceData(node, children) {
    const sourceData = node.attribs["data"];
    if (sourceData) {
      return sourceData;
    }
    if (Array.isArray(children) && children.length > 0) {
      return children[0];
    }
    return children;
  }
function getSourceData(node, children) {
    const sourceData = node.attribs["data"];
    if (sourceData) {
      return sourceData;
    }
    if (Array.isArray(children) && children.length > 0) {
      return children[0];
    }
    return children;
  }
function getSourceData ( node , children ) { const sourceData = node . attribs [ "data" ] ; if ( sourceData ) { return sourceData ; } if ( Array . isArray ( children ) && children . length > 0 ) { return children [ 0 ] ; } return children ; }
Returns the 'data' attribute if available, otherwise the child of this node.
@private
Returns the data attribute if available otherwise the child of this node .