UNPKG

@atlaskit/adf-utils

Version:

Set of utilities to traverse, modify and create ADF documents.

15 lines (14 loc) 357 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fragment = void 0; var _applyMark = require("../utils/apply-mark"); var fragment = exports.fragment = function fragment(attrs) { return function (maybeNode) { return (0, _applyMark.applyMark)({ type: 'fragment', attrs: attrs }, maybeNode); }; };