chore(xmldocs): resolve MD links to XmlDocs tags (#5782)

This commit is contained in:
Anže Vodovnik 2021-03-10 18:07:23 +01:00 committed by GitHub
parent 9560da75f3
commit 42e9a4703c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,7 @@ function _wrapAndEscape(node, maxColumns = 0) {
text = text.replace(/\[(.*?)\]\((.*?\))/g, (match, linkName, linkUrl) => {
return `<a href="${linkUrl}">${linkName}</a>`;
});
text = text.replace(/\[(.*?)\]/g, (match, link) => `<see cref="${link}" />`);
const words = text.split(' ');
let line = '';
for (let i = 0; i < words.length; i++) {