"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const syntax = require("../micromark-extension-math/lib-syntax.cjs");
const index = require("../mdast-util-math/lib-index.cjs");
const emptyOptions = {};
function remarkMath(options) {
  const self = (
    /** @type {Processor} */
    this
  );
  const settings = options || emptyOptions;
  const data = self.data();
  const micromarkExtensions = data.micromarkExtensions || (data.micromarkExtensions = []);
  const fromMarkdownExtensions = data.fromMarkdownExtensions || (data.fromMarkdownExtensions = []);
  const toMarkdownExtensions = data.toMarkdownExtensions || (data.toMarkdownExtensions = []);
  micromarkExtensions.push(syntax.math(settings));
  fromMarkdownExtensions.push(index.mathFromMarkdown());
  toMarkdownExtensions.push(index.mathToMarkdown(settings));
}
exports.default = remarkMath;
//# sourceMappingURL=lib-index.cjs.map
