ui: md editor: remove sub and sup

This commit is contained in:
undefined committed 2025-03-03 06:36:44 +08:00
1 parent b804fbbe6c
commit 0bf3bc9abd
2 files changed
+6 -2

No files matched your search

@@ -181,8 +181,8 @@ export default class Editor extends DOMAttachedObject {
// '-', // '-',
// 'strikeThrough', // 'strikeThrough',
// 'title', // 'title',
// 'sub', 'sub',
// 'sup', 'sup',
// 'quote', // 'quote',
// 'unorderedList', // 'unorderedList',
// 'orderedList', // 'orderedList',
@@ -34,6 +34,10 @@ config({
}); });
} }
}, },
markdownItPlugins(plugins) {
console.log('Active builtin mdit plugins', plugins);
return plugins.filter((plugin) => ['sub', 'sup'].includes(plugin.type));
},
}); });
export { MdEditor }; export { MdEditor };