mirror of
https://github.com/outline/outline.git
synced 2026-11-26 23:50:14 +03:00
Converting a list to or from a checklist previously cleared all nodes and re-wrapped them, which flattened any nested list structure. Convert the list nodes in place instead, recursively mapping list and item types so nesting is preserved. https://claude.ai/code/session_01BGH191WyuL9SgQyjfJ3YsD
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.