docs(dotnet): fix link regex on xmldocs (#6528)

This commit is contained in:
Darío Kondratiuk 2021-05-12 12:08:12 -03:00 committed by GitHub
parent 60a7b0618f
commit 5aa00d1e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ function _wrapAndEscape(node, maxColumns = 0) {
let text = node.text;
text = text.replace(/\[(.*?)\]\((.*?)\)/g, (match, linkName, linkUrl) => {
text = text.replace(/\[([^\]]*)\]\((.*?)\)/g, (match, linkName, linkUrl) => {
return `<a href="${linkUrl}">${linkName}</a>`;
});
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);