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
Copy file name to clipboardExpand all lines: .changeset/lucky-clocks-thank.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,6 @@
4
4
5
5
fix: stop character-highlight ranges leaking across patterns, so an id-only annotation like `/foo/#a` no longer makes a later pattern inherit the previous pattern's range, and a range-ignored occurrence no longer consumes the whole token it lives in (#169)
6
6
7
-
Note that an occurrence a range excludes is now split into its own span rather than left inside the surrounding token, so the emitted HTML around character ranges changes even where the visible highlighting does not.
7
+
Range-excluded occurrences are counted without changing the token tree, so unhighlighted markup remains intact.
8
+
9
+
Partial highlights inside transformer-generated elements preserve the surrounding semantic element instead of cloning it.
0 commit comments