Skip to content

Commit 19ec64d

Browse files
committed
chore: replace noopener w/ noreferrer
1 parent 8598040 commit 19ec64d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/utils/docs/text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function parseJsDocLinks(text: string, symbolLookup: SymbolLookup): strin
7575

7676
// External URL
7777
if (target.startsWith('http://') || target.startsWith('https://')) {
78-
return `<a href="${target}" target="_blank" rel="noopener" class="docs-link">${displayText}</a>`
78+
return `<a href="${target}" target="_blank" rel="noreferrer" class="docs-link">${displayText}</a>`
7979
}
8080

8181
// Internal symbol reference
@@ -119,7 +119,7 @@ export async function renderMarkdown(text: string, symbolLookup: SymbolLookup):
119119
// Markdown links - i.e. [text](url)
120120
result = result.replace(
121121
/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g,
122-
'<a href="$2" target="_blank" rel="noopener" class="docs-link">$1</a>',
122+
'<a href="$2" target="_blank" rel="noreferrer" class="docs-link">$1</a>',
123123
)
124124

125125
// Handle inline code (single backticks) - won't interfere with fenced blocks

0 commit comments

Comments
 (0)