mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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',
|
// '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 };
|
||||||
Reference in new issue
Block a user