Skip to content

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

Merged
t3chguy merged 1 commit into
developfrom
t3chguy/fix/28607
Dec 2, 2024
Merged

t3chguy merged 1 commit into
developfrom
t3chguy/fix/28607

Conversation

@t3chguy

@t3chguy t3chguy commented Dec 2, 2024

Copy link
Copy Markdown
Member

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

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@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
@t3chguy
t3chguy deleted the t3chguy/fix/28607 branch December 2, 2024 14:20

This branch was successfully deployed

2 active deployments
EndToEndTests — 764877d7 Deployed Dec 2, 2024 by github-actions[bot]
Netlify — 764877d7 Deployed Dec 2, 2024 by github-actions[bot]
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