mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
22 lines
394 B
TypeScript
22 lines
394 B
TypeScript
import { config, XSSPlugin } from "md-editor-v3";
|
|
|
|
export async function configureMDEditor() {
|
|
config({
|
|
editorExtensions: {
|
|
screenfull: {
|
|
instance: { isEnabled: false },
|
|
},
|
|
},
|
|
markdownItPlugins(plugins) {
|
|
return [
|
|
...plugins,
|
|
{
|
|
type: "xss",
|
|
plugin: XSSPlugin,
|
|
options: {},
|
|
},
|
|
];
|
|
},
|
|
});
|
|
}
|