This commit is contained in:
Jonatan Heyman 2024-07-07 19:29:17 +02:00
parent c3892163af
commit 9bcf03d00c

View File

@ -136,7 +136,7 @@ function getBlocksFromString(state) {
* Get the blocks from the document state. * Get the blocks from the document state.
* If the syntax tree is available, we'll extract the blocks from that. Otherwise * If the syntax tree is available, we'll extract the blocks from that. Otherwise
* the blocks are parsed from the string contents of the document, which is much faster * the blocks are parsed from the string contents of the document, which is much faster
* than waiting for the tree parsing to finnish. * than waiting for the tree parsing to finish.
*/ */
function getBlocks(state) { function getBlocks(state) {
if (syntaxTreeAvailable(state, state.doc.length)) { if (syntaxTreeAvailable(state, state.doc.length)) {