update hyperdown

This commit is contained in:
joyqi 2021-06-30 16:29:51 +08:00
parent d7a48ce086
commit cb4778d6c4
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -413,7 +413,7 @@
matches = 1 <= arguments.length ? slice.call(arguments, 0) : [];
url = _this.cleanUrl(matches[2]);
link = _this.call('parseLink', url);
return matches[1] + "<a href=\"" + link + "\">" + matches[2] + "</a>" + matches[5];
return matches[1] + "<a href=\"" + url + "\">" + link + "</a>" + matches[5];
};
})(this));
}

View File

@ -545,7 +545,7 @@ class HyperDown
function ($matches) use ($self) {
$url = $self->cleanUrl($matches[2]);
$link = $self->call('parseLink', $url);
return "{$matches[1]}<a href=\"{$link}\">{$matches[2]}</a>{$matches[5]}";
return "{$matches[1]}<a href=\"{$url}\">{$link}</a>{$matches[5]}";
},
$text
);