util.js 323 B

12345678910
  1. exports.isRemarkParser = isRemarkParser
  2. exports.isRemarkCompiler = isRemarkCompiler
  3. function isRemarkParser(parser) {
  4. return Boolean(parser && parser.prototype && parser.prototype.blockTokenizers)
  5. }
  6. function isRemarkCompiler(compiler) {
  7. return Boolean(compiler && compiler.prototype && compiler.prototype.visitors)
  8. }