import { Code } from "./Code.mjs";
import { MarkdownProcessor } from "../MarkDownRender/processor.mjs";
import { jsx } from "react/jsx-runtime";

//#region src/components/IDE/MarkDownRender.tsx
const MarkdownRenderer = ({ children, isDarkMode }) => /* @__PURE__ */ jsx(MarkdownProcessor, {
	options: { overrides: {
		code: { component: (props) => /* @__PURE__ */ jsx(Code, {
			...props,
			isDarkMode,
			language: props.className?.replace("lang-", ""),
			showHeader: false,
			className: "text-xs leading-5"
		}) },
		pre: (props) => props.children
	} },
	children: children ?? ""
});

//#endregion
export { MarkdownRenderer };
//# sourceMappingURL=MarkDownRender.mjs.map