"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const file_context_1 = require("@cocalc/frontend/lib/file-context");
const static_markdown_1 = __importDefault(require("@cocalc/frontend/editors/slate/static-markdown"));
const A_1 = __importDefault(require("components/misc/A"));
function SanitizedMarkdown({ style, value, }) {
    const ctx = {
        AnchorTagComponent: A_1.default,
        noSanitize: false,
    };
    return ((0, jsx_runtime_1.jsx)(file_context_1.FileContext.Provider, { value: ctx, children: (0, jsx_runtime_1.jsx)(static_markdown_1.default, { value: value, style: style }) }));
}
exports.default = SanitizedMarkdown;
//# sourceMappingURL=sanitized-markdown.js.map