lighter icon indicating copy to clipboard operation
lighter copied to clipboard

Code Highlight for Ruby when using string interpolation not properly working

Open AlbertMukarsel opened this issue 10 months ago • 2 comments

Currently, using Code Hike in a Next.js project that serves code snippets for certain SDKs. Issue is that when trying to use interpolated strings in ruby, the highlight is not working properly (See attached screenshot)

Current behavior using code-hike: Image

This is the same snippet, and how it looks in a Replit project:

Image

theme-used: 'github-dark' code-hike version: 1.0.1 next.js version: 14.2.25

AlbertMukarsel avatar Mar 28 '25 20:03 AlbertMukarsel

We use the grammars from https://github.com/shikijs/textmate-grammars-themes. Can you check the playground there?

pomber avatar May 08 '25 08:05 pomber

@pomber On that playground text looks good, and the interpolation is highlighted correctly.

Image

lopenchi avatar Jun 16 '25 16:06 lopenchi