docs/plans/2026-03-26-fix-codeblock-language-rehighlight.md
Make code-block syntax highlighting refresh for the whole block immediately after lang changes.
withCodeBlock language changes.withCodeBlock.apply to detect real lang transitions, clear cache, then trigger editor.api.redecorate().lint:fix.redecorate now lives on the base SlateExtensionPlugin API as a no-op, so shared plugins can call editor.api.redecorate() without local casts.bun test packages/core/src/lib/plugins/slate-extension/SlateExtensionPlugin.spec.tsx packages/code-block/src/lib/withCodeBlock.spec.tsxpnpm installpnpm turbo build --filter=./packages/core --filter=./packages/code-blockpnpm turbo typecheck --filter=./packages/corepnpm turbo typecheck --filter=./packages/core --filter=./packages/code-block failed on broader existing @platejs/code-block package type errors outside this cleanuppnpm lint:fix