mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: md editor: remove sub and sup
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -181,8 +181,8 @@ export default class Editor extends DOMAttachedObject {
|
||||
// '-',
|
||||
// 'strikeThrough',
|
||||
// 'title',
|
||||
// 'sub',
|
||||
// 'sup',
|
||||
'sub',
|
||||
'sup',
|
||||
// 'quote',
|
||||
// 'unorderedList',
|
||||
// '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 };
|
||||
Reference in new issue
Block a user