mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Fix fragment name
This commit is contained in:
@@ -219,8 +219,8 @@
|
||||
while (node) {
|
||||
if (node.tagName && node.tagName.toLowerCase() === 'a' && node.href) {
|
||||
if (node.href.startsWith('file://')) {
|
||||
const [path, frag] = node.href.replace(/^file:\/\//i, '').split('#');
|
||||
postMessage('_markdown.openDocumentLink', { path, frag });
|
||||
const [path, fragment] = node.href.replace(/^file:\/\//i, '').split('#');
|
||||
postMessage('_markdown.openDocumentLink', { path, fragment });
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user