rehype-pretty-code icon indicating copy to clipboard operation
rehype-pretty-code copied to clipboard

Can't highlight not first word in line

Open EzioMercer opened this issue 5 months ago • 0 comments

Here is the code:

```ts /Hello/4
const x: string = 'Hello world';
let y = 'Hello mama';

console.log(x + ' ' + y); // Hello world Hello mama
```

Expected result - Should highlight the second Hello at last line Actual result - Doesn't highlight the second Hello at last line

When I change the number from 4 to 3 it works perfectly

EzioMercer avatar Sep 14 '24 14:09 EzioMercer