This repository has no description
Something went wrong. Try again.
fix(lexical): add codeBlock + complete TextNode shape master
Payload's defaultFeatures don't register a 'code' node, so fenced code blocks crashed the admin editor with $parseSerializedNodeImpl. Replace the bare 'code' Lexical node with a custom Payload Block ('codeBlock') exposing language + code fields, register it in the body editor, and render it as <pre><code> on the frontend. Also fill in the TextNode serialized shape (detail/mode/style) that Lexical 0.41's TextNode.updateFromJSON requires. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Author Chris Arter Co-author Claude Opus 4.7 (1M context) Date (May 9, 2026, 1:32 PM UTC) Commit 36a6811d 36a6811dcfb08f4975edf22aa06aa75a83e2e9d3 Parent 79c39daa 79c39daa91fd6bb0a4aae1e0105ce8260f85082e