Skip to content

[lexical-code-prism][lexical-code-shiki] Bug Fix: Remove usage of skipTransforms in CodeHighlighterPrism and CodeHighlighterShiki#8254

Merged
etrepum merged 2 commits into
facebook:mainfrom
etrepum:code-highlighter-skipTransforms
Mar 24, 2026
Merged

[lexical-code-prism][lexical-code-shiki] Bug Fix: Remove usage of skipTransforms in CodeHighlighterPrism and CodeHighlighterShiki#8254
etrepum merged 2 commits into
facebook:mainfrom
etrepum:code-highlighter-skipTransforms

Conversation

@etrepum

@etrepum etrepum commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

Description

Using a nested update with skipTransforms is dangerous because it will affect subsequent updates, this refactor removes that and moves highlighter state to a local closure rather than module global.

Closes #7324

Test plan

Shouldn't really be observable by any of the existing tests

…ipTransforms in CodeHighlighterPrism and CodeHighlighterShiki
@vercel

vercel Bot commented Mar 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 23, 2026 9:32pm
lexical-playground Ready Ready Preview, Comment Mar 23, 2026 9:32pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 23, 2026
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Mar 23, 2026
@etrepum etrepum added this pull request to the merge queue Mar 24, 2026
Merged via the queue into facebook:main with commit 3afba9c Mar 24, 2026
37 checks passed
@etrepum etrepum deleted the code-highlighter-skipTransforms branch March 24, 2026 15:32
@etrepum etrepum mentioned this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug (?): syntax highlighting in code blocks affected by plugin order

2 participants