diff --git a/packages/ui-default/components/editor/index.tsx b/packages/ui-default/components/editor/index.tsx index c1d6e0158..dfd5915b7 100644 --- a/packages/ui-default/components/editor/index.tsx +++ b/packages/ui-default/components/editor/index.tsx @@ -181,8 +181,8 @@ export default class Editor extends DOMAttachedObject { // '-', // 'strikeThrough', // 'title', - // 'sub', - // 'sup', + 'sub', + 'sup', // 'quote', // 'unorderedList', // 'orderedList', diff --git a/packages/ui-default/components/editor/mdeditor.ts b/packages/ui-default/components/editor/mdeditor.ts index 62e6ef4ac..88f934d7d 100644 --- a/packages/ui-default/components/editor/mdeditor.ts +++ b/packages/ui-default/components/editor/mdeditor.ts @@ -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 };