Skip to content

Commit 7661a37

Browse files
committed
fix: also highlight heading and block links
1 parent 663129c commit 7661a37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/solid/render-context-tree.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export function renderContextTree({
2323
// Extract alias from aliased links ([[Note title|Alias]]) to be highlighted
2424
highlights = highlights.map((hl) => hl.split('|').slice(-1)[0]);
2525

26-
// Extract note title from heading and block links
27-
highlights = highlights.map((hl) => hl.split('#')[0]);
26+
// Reformat heading and block links (e.g. [[Note title#Heading]]) to match reading view
27+
highlights = highlights.map((hl) => hl.replace('#', ' > '));
2828

2929
return render(
3030
() => (

0 commit comments

Comments
 (0)