diff --git a/core/src/commands/index.ts b/core/src/commands/index.ts index 3f700db57..1d6e82708 100644 --- a/core/src/commands/index.ts +++ b/core/src/commands/index.ts @@ -23,6 +23,7 @@ import { title4 } from './title4'; import { title5 } from './title5'; import { title6 } from './title6'; import { table } from './table'; +import { issue } from './issue'; import { help } from './help'; export interface CommandOrchestrator { @@ -202,6 +203,9 @@ export { unorderedListCommand, orderedListCommand, checkedListCommand, + table, + issue, + help, codeEdit, codeLive, codePreview, diff --git a/core/src/components/TextArea/handleKeyDown.tsx b/core/src/components/TextArea/handleKeyDown.tsx index 6f3d0016f..93c16c070 100644 --- a/core/src/components/TextArea/handleKeyDown.tsx +++ b/core/src/components/TextArea/handleKeyDown.tsx @@ -115,10 +115,12 @@ export default function handleKeyDown( startStr = '\n* '; } - if (currentLineStr.startsWith('- [ ]')) { + if ( + currentLineStr.startsWith('- [ ]') || + currentLineStr.startsWith('- [X]') || + currentLineStr.startsWith('- [x]') + ) { startStr = '\n- [ ] '; - } else if (currentLineStr.startsWith('- [X]') || currentLineStr.startsWith('- [x]')) { - startStr = '\n- [X] '; } if (/^\d+.\s/.test(currentLineStr)) {