Properly removed hashtags and at mentions inside of markdown links (#3283)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
68c2b070da
Коммит
bde4326458
@@ -163,7 +163,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// remove any links added to the text by hashtag or mention parsing since they'll break this link
|
// remove any links added to the text by hashtag or mention parsing since they'll break this link
|
||||||
output += '>' + text.replace(/<\/?a[^>]*>/, '') + '</a>';
|
output += '>' + text.replace(/<\/?a[^>]*>/g, '') + '</a>';
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user