mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
17 lines
294 B
TypeScript
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: {},
|
|
},
|
|
];
|
|
},
|
|
});
|
|
}
|