View as Markdown

API reference: @salmonui/editors/markdown-editor

continueMarkdownListfunction

import { continueMarkdownList } from '@salmonui/editors/markdown-editor';
function continueList(state: TextState): TextState | null;

Enter inside a list item: continues the marker on a new line (the next number for ordered lists, an unchecked box for task lists); on an empty item it removes the marker and ends the list. Null when the caret line is not a list item or the selection is not a caret.