Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code block highlighting not working reliably with many code blocks #28613

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Dec 2, 2024

Fixes #28607

The issue was the pres list was mutating itself and thus the for loop only hit every other pre.
There was an additional issue in React dev mode which meant that some highlighting was never done due to the double-rendering debug that React does causing the CodeBlock components to unmount but never clean up after themselves ready for a re-mount

@t3chguy t3chguy added this pull request to the merge queue Dec 2, 2024
Merged via the queue into develop with commit e75ff81 Dec 2, 2024
43 checks passed
@t3chguy t3chguy deleted the t3chguy/fix/28607 branch December 2, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple code blocks in a single message are alternately syntax-highlighted
3 participants