'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

require('../../../hast-util-raw@7.2.3/node_modules/hast-util-raw/index.js');
var index = require('../../../hast-util-raw@7.2.3/node_modules/hast-util-raw/lib/index.js');

/**
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast-util-raw').Options} Options
 * @typedef {import('hast-util-raw')} DoNotTouchAsThisImportIncludesRawInTree
 */


/**
 * Plugin to parse the tree again (and raw nodes).
 * Keeping positional info OK.  🙌
 *
 * @type {import('unified').Plugin<[Options?] | Array<void>, Root>}
 */
function rehypeRaw(options = {}) {
  return (tree, file) => {
    // Assume that when a root was given, it’s also returned.
    const result = /** @type {Root} */ (index.raw(tree, file, options));
    return result
  }
}

exports.default = rehypeRaw;
//# sourceMappingURL=index.js.map
