mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Remove onCommand from markdown preview
This commit is contained in:
@@ -133,7 +133,7 @@ document.addEventListener('click', event => {
|
||||
}
|
||||
if (node.href.startsWith('file://') || node.href.startsWith('vscode-resource:')) {
|
||||
const [path, fragment] = node.href.replace(/^(file:\/\/|vscode-resource:)/i, '').split('#');
|
||||
messaging.postCommand('_markdown.openDocumentLink', [{ path, fragment }]);
|
||||
messaging.postMessage('clickLink', { path, fragment });
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user