Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Anže Vodovnik42e9a4703c96
diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.js
index 2874793dcf..2f27f76c1b 100644
--- a/utils/doclint/xmlDocumentation.js
+++ b/utils/doclint/xmlDocumentation.js
@@ -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++) {