Browse Source

Make Token class accessible from a State

pull/82/head
Alex Kocharin 10 years ago
parent
commit
5a390adbbc
  1. 2
      lib/rules_block/state_block.js
  2. 2
      lib/rules_inline/state_inline.js

2
lib/rules_block/state_block.js

@ -168,5 +168,7 @@ StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF
return queue.join('');
};
StateBlock.prototype.Token = Token;
module.exports = StateBlock;

2
lib/rules_inline/state_inline.js

@ -53,5 +53,7 @@ StateInline.prototype.push = function (type, tag, nesting) {
return token;
};
StateInline.prototype.Token = Token;
module.exports = StateInline;

Loading…
Cancel
Save