Files
romm/frontend/src/plugins/mdeditor.ts
Georges-Antoine Assi 892b647be7 use exported xss plugin
2025-01-26 21:25:58 -05:00

17 lines
294 B
TypeScript

import { config, XSSPlugin } from "md-editor-v3";
export async function configureMDEditor() {
config({
markdownItPlugins(plugins) {
return [
...plugins,
{
type: "xss",
plugin: XSSPlugin,
options: {},
},
];
},
});
}