Fix markdown reference links for links with spaces
This commit is contained in:
parent
1e5274d6be
commit
5829262687
|
@ -43,7 +43,7 @@ function matchAll(pattern: RegExp, text: string): Array<RegExpMatchArray> {
|
|||
export default class LinkProvider implements vscode.DocumentLinkProvider {
|
||||
private linkPattern = /(\[[^\]]*\]\(\s*?)(((((?=.*\)\)+)|(?=.*\)\]+))[^\s\)]+?)|([^\s]+)))\)/g;
|
||||
private referenceLinkPattern = /(\[([^\]]+)\]\[\s*?)(\w*)\]/g;
|
||||
private definitionPattern = /^([\t ]*\[(\w+)\]:\s*)(\S+)/gm;
|
||||
private definitionPattern = /^([\t ]*\[([^\]]+)\]:\s*)(\S+)/gm;
|
||||
|
||||
public provideDocumentLinks(
|
||||
document: vscode.TextDocument,
|
||||
|
|
Loading…
Reference in a new issue