public pages links
This commit is contained in:
+2
-2
@@ -152,9 +152,9 @@ function installPublicPermalinks() {
|
||||
anchor.href = heading ? `#${encodeURIComponent(target.id)}` : `#L${line}`;
|
||||
anchor.dataset.line = String(line);
|
||||
anchor.dataset.linkKind = heading ? "heading" : "line";
|
||||
anchor.textContent = heading ? "¶" : "#";
|
||||
anchor.textContent = String(line);
|
||||
anchor.setAttribute("aria-label", heading ? `Copy link to heading on line ${line}` : `Copy link to line ${line}`);
|
||||
anchor.title = heading ? "Copy link to this heading" : `Copy link to line ${line}`;
|
||||
anchor.title = heading ? `Copy link to this heading (line ${line})` : `Copy link to line ${line}`;
|
||||
target.append(anchor);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user