mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* Add functionality to split code blocks with triple backticks This change allows users to split a code block into two by typing three backticks within it. When a user types three backticks inside a code block, the block will be split at that point, creating a new code block below with the same language. Fixes #9958 * testing * refactor --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
https://prosemirror.net/docs/ref/#commands
Commands are building block functions that encapsulate an editing action. A command function takes an editor state, optionally a dispatch function that it can use to dispatch a transaction and optionally an EditorView instance. It should return a boolean that indicates whether it could perform any action.
Additional commands that are not included as part of prosemirror-commands, but are often reused can be found in this folder.