tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
27
pulls
pipelines
fix highlighting logic
awarm.space
7 months ago
c8626fd4
311a7b9d
+2
-1
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
useHighlight.tsx
+2
-1
app/lish/[did]/[publication]/[rkey]/useHighlight.tsx
···
50
50
!expandedPos.reduce(
51
51
(acc, i, index) =>
52
52
acc &&
53
53
-
i >= quotePosition?.start.block[index] &&
53
53
+
((i === -1 && quotePosition?.start.block[index] === undefined) ||
54
54
+
i >= (quotePosition?.start.block[index] ?? -1)) &&
54
55
i <= quotePosition.end.block[index],
55
56
true,
56
57
)