"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require$$0 = require("react/jsx-runtime");
const index = require("../../../../_virtual/index4.cjs");
const React = require("react");
const index$1 = require("../../../../_vendor/rehype-katex/lib-index.cjs");
const index$2 = require("../../../../_vendor/remark-gfm/lib-index.cjs");
const index$3 = require("../../../../_vendor/remark-breaks/lib-index.cjs");
const index$4 = require("../../../../_vendor/remark-math/lib-index.cjs");
const index$5 = require("../../../../_vendor/react-markdown/lib-index.cjs");
const hardenReactMarkdown = index.default.default || index.default;
const HardenedMarkdown = hardenReactMarkdown(index$5.Markdown);
const MarkdownBlock = React.memo(
  function MarkdownBlock2(props) {
    const {
      content,
      components,
      allowedLinkPrefixes = ["https://", "http://", "#", "mailto:"],
      allowedImagePrefixes = ["https://", "http://", "data:image/"],
      defaultOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost",
      ...rest
    } = props;
    return /* @__PURE__ */ require$$0.jsx(
      HardenedMarkdown,
      {
        remarkPlugins: [index$2.default, index$3.default, index$4.default],
        rehypePlugins: [index$1.default],
        components,
        allowedLinkPrefixes,
        allowedImagePrefixes,
        defaultOrigin,
        ...rest,
        children: content
      }
    );
  },
  function propsAreEqual(prevProps, nextProps) {
    return prevProps.content === nextProps.content;
  }
);
exports.MarkdownBlock = MarkdownBlock;
//# sourceMappingURL=markdown-block.cjs.map
