File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 / \[ ( [ ^ \] ] + ) \] \( ( h t t p s ? : \/ \/ [ ^ ) ] + ) \) / 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
You can’t perform that action at this time.
0 commit comments