"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
var file_context_1 = require("@cocalc/frontend/lib/file-context");
var static_markdown_1 = __importDefault(require("@cocalc/frontend/editors/slate/static-markdown"));
var A_1 = __importDefault(require("components/misc/A"));
function SanitizedMarkdown(_a) {
    var value = _a.value;
    var ctx = {
        AnchorTagComponent: A_1.default,
        noSanitize: false,
    };
    return ((0, jsx_runtime_1.jsx)(file_context_1.FileContext.Provider, __assign({ value: ctx }, { children: (0, jsx_runtime_1.jsx)(static_markdown_1.default, { value: value }) })));
}
exports.default = SanitizedMarkdown;
//# sourceMappingURL=sanitized-markdown.js.map