rehype-pretty / rehype-pretty-code

Beautiful code blocks for Markdown or MDX.
https://rehype-pretty.pages.dev
MIT License
1.01k stars 63 forks source link

word highlighting break only works on first item #166

Closed o-az closed 7 months ago

o-az commented 7 months ago

If you don't add a range to the first one it breaks:

computePosition(a, b, {
  computePositionOther: true,
});

js /a/1 /computePosition/1#a works. It should work regardless of order.

o-az commented 7 months ago

Related #163