提交 58292626 编写于 作者: M Matt Bierner

Fix markdown reference links for links with spaces

上级 1e5274d6
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册