]> BookStack Code Mirror - bookstack/commit
Lexical: Fixed code in lists, removed extra old alignment code 5415/head
authorDan Brown <redacted>
Sun, 16 Feb 2025 15:09:33 +0000 (15:09 +0000)
committerDan Brown <redacted>
Sun, 16 Feb 2025 15:09:33 +0000 (15:09 +0000)
commit2b746425c9c3d08a89649362396eaa75a1ccf626
tree1e9828f8cb371ace1e9c779121d504f82fd1e052
parent7e03a973d88999f1e22b601d0b2f6c947d0bd5fc
Lexical: Fixed code in lists, removed extra old alignment code

Code in lists could throw error on parse due to inner <code> tag being
parsed but not actually used within a <pre>, so this updates the
importDOM to disregard childdren for code blocks.

This also improves the invariant implementation to not be so
dev/debugger based, and to include vars in the output.
resources/js/wysiwyg/lexical/core/LexicalCommands.ts
resources/js/wysiwyg/lexical/core/LexicalConstants.ts
resources/js/wysiwyg/lexical/core/LexicalNode.ts
resources/js/wysiwyg/lexical/core/index.ts
resources/js/wysiwyg/lexical/core/nodes/LexicalElementNode.ts
resources/js/wysiwyg/lexical/core/nodes/LexicalTextNode.ts
resources/js/wysiwyg/lexical/core/shared/invariant.ts
resources/js/wysiwyg/lexical/html/index.ts
resources/js/wysiwyg/lexical/rich-text/LexicalCodeBlockNode.ts
resources/js/wysiwyg/lexical/rich-text/index.ts
Morty Proxy This is a proxified and sanitized view of the page, visit original site.