Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.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);
})
prev: function(n) {
return this.stack.length > 0
? util.last(this.stack, n)
: util.last(this.nodes, n);
},
isDirectlyInside: function(type) {
if (typeof type === 'undefined') {
return this.count > 0 ? util.last(this.typeStack) : null;
}
return util.last(this.typeStack) === type;
},
get: function() {
return this.nodes ? utils.last(this.nodes) : null;
}
});
isDirectlyInside: function(type) {
if (typeof type === 'undefined') {
return this.count > 0 ? util.last(this.typeStack) : null;
}
return util.last(this.typeStack) === type;
},
prev: function(n) {
return this.stack.length > 0
? util.last(this.stack, n)
: util.last(this.nodes, n);
},