You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue where the code highlight colouring falls apart once it encounters destructuring in TypeScript code blocks.
My solution is to just comment out the destructuring to correctly highlight the remaining code. While this is a niche case it would be great for rehype-pretty-code to support this :)
Here is the code blog which is causing issues, attached after is some screenshots of what rehype-pretty-code colours them as
The text was updated successfully, but these errors were encountered:
ProRedCat
changed the title
Issue: Incorrect code highlight colouring when using TypeScript destructuring operator
Issue: Incorrect syntax highlighting when using TypeScript destructuring operator
Sep 5, 2024
I've encountered an issue where the code highlight colouring falls apart once it encounters destructuring in TypeScript code blocks.
My solution is to just comment out the destructuring to correctly highlight the remaining code. While this is a niche case it would be great for rehype-pretty-code to support this :)
Here is the code blog which is causing issues, attached after is some screenshots of what rehype-pretty-code colours them as
Commenting out the destructuring in this
The text was updated successfully, but these errors were encountered: