text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var common_macro_1 = require("./common-macro");
  exports.adfMacro = function (_a) {
      var input = _a.input, position = _a.position, schema = _a.schema, context = _a.context;
      return common_macro_1.commonMacro(input.substring(position), schema, {
          keyword: 'adf',
          paired: true,
          context: context,
          rawContentProcessor: rawContentProcessor,
      });
  };
  var rawContentProcessor = function (_rawAttrs, rawContent, length, schema, _context) {
      var json = JSON.parse(rawContent);
      var node = schema.nodeFromJSON(json);
      return {
          type: 'pmnode',
          nodes: [node],
          length: length,
      };
  };
  //# sourceMappingURL=adf-macro.js.map