How to use the snapdragon-util.last function in snapdragon-util

To help you get started, we’ve selected a few snapdragon-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github breakdance / breakdance / lib / compiler.js View on Github external
.set('th', function(node) {
        var table = util.last(this.state.tables);
        switch (node.attribs.align) {
          case 'center':
            table.aligmentRow.push(':---:');
            break;
          case 'left':
            table.aligmentRow.push(':---');
            break;
          case 'right':
            table.aligmentRow.push('---:');
            break;
          default:
            table.aligmentRow.push('---');
            break;
        }
        this.mapVisit(node);
      })
github here-be / snapdragon / lib / parser.js View on Github external
prev: function(n) {
    return this.stack.length > 0
      ? util.last(this.stack, n)
      : util.last(this.nodes, n);
  },
github here-be / snapdragon / lib / parser.js View on Github external
isDirectlyInside: function(type) {
    if (typeof type === 'undefined') {
      return this.count > 0 ? util.last(this.typeStack) : null;
    }
    return util.last(this.typeStack) === type;
  },
github GoogleContainerTools / kpt / docsy / node_modules / snapdragon-node / index.js View on Github external
get: function() {
    return this.nodes ? utils.last(this.nodes) : null;
  }
});
github here-be / snapdragon / lib / parser.js View on Github external
isDirectlyInside: function(type) {
    if (typeof type === 'undefined') {
      return this.count > 0 ? util.last(this.typeStack) : null;
    }
    return util.last(this.typeStack) === type;
  },
github here-be / snapdragon / lib / parser.js View on Github external
prev: function(n) {
    return this.stack.length > 0
      ? util.last(this.stack, n)
      : util.last(this.nodes, n);
  },