mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): fix link regex on xmldocs (#6528)
This commit is contained in:
parent
60a7b0618f
commit
5aa00d1e5e
@ -118,7 +118,7 @@ function _wrapAndEscape(node, maxColumns = 0) {
|
|||||||
|
|
||||||
|
|
||||||
let text = node.text;
|
let text = node.text;
|
||||||
text = text.replace(/\[(.*?)\]\((.*?)\)/g, (match, linkName, linkUrl) => {
|
text = text.replace(/\[([^\]]*)\]\((.*?)\)/g, (match, linkName, linkUrl) => {
|
||||||
return `<a href="${linkUrl}">${linkName}</a>`;
|
return `<a href="${linkUrl}">${linkName}</a>`;
|
||||||
});
|
});
|
||||||
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
|
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user