How to use the snapdragon-util.isType 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('code.open', function(node) {
        adjustTrailingSpace(this);

        var parent = node.parent;
        if (!this.options.literalPre && util.isType(parent.parent, 'pre')) {
          this.emit('\n\n', node);
          this.emit('```');
          this.emit(langMap(node.parent.lang, this.options));
          this.emit('\n');
        } else {
          this.emit(node.parent.delim);
        }
      })
      .set('code.close', function(node) {
github GoogleContainerTools / kpt / docsy / node_modules / snapdragon-node / index.js View on Github external
Node.prototype.isType = function(type) {
  return utils.isType(this, type);
};