lib/parser.js
function getComponentHtml($, $el, $siblings, keyword, meta) {

  var capture = meta.capture;

  // default to single node
  if (typeof capture === 'undefined') {
    capture = 1;
  }

  // capture fixed number of nodes
  if (Number.isInteger(capture) || typeof capture === 'undefined') {
    return captureNumber($, $siblings, capture);
  }

  // capture all
  if (capture === CAPTURE_ALL) {
    return captureAll($, $siblings);
  }

  // capture section
  if (capture === CAPTURE_SECTION) {
    return captureSection($, $el, keyword, meta);
  }
}
function getComponentHtml($, $el, $siblings, keyword, meta) {

  var capture = meta.capture;

  // default to single node
  if (typeof capture === 'undefined') {
    capture = 1;
  }

  // capture fixed number of nodes
  if (Number.isInteger(capture) || typeof capture === 'undefined') {
    return captureNumber($, $siblings, capture);
  }

  // capture all
  if (capture === CAPTURE_ALL) {
    return captureAll($, $siblings);
  }

  // capture section
  if (capture === CAPTURE_SECTION) {
    return captureSection($, $el, keyword, meta);
  }
}
function getComponentHtml ( $ , $el , $siblings , keyword , meta ) { var capture = meta . capture ; // default to single node if ( typeof capture === 'undefined' ) { capture = 1 ; } // capture fixed number of nodes if ( Number . isInteger ( capture ) || typeof capture === 'undefined' ) { return captureNumber ( $ , $siblings , capture ) ; } // capture all if ( capture === CAPTURE_ALL ) { return captureAll ( $ , $siblings ) ; } // capture section if ( capture === CAPTURE_SECTION ) { return captureSection ( $ , $el , keyword , meta ) ; } }
Get html component
Get html component