Only limit length of link if specified (#3700)

This commit is contained in:
Oliver 2022-09-21 14:01:30 +10:00 committed by GitHub
parent 2129eecf24
commit 2a846c7030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ function renderLink(text, url, options={}) {
return text;
}
var max_length = options.max_length || 100;
var max_length = options.max_length || 0;
if (max_length > 0) {
text = shortenString(text, {