From 3f26dbcf042b3e0e485a3e7a1e7a596d75a2d766 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 6 May 2024 15:38:46 -0700 Subject: [PATCH] Change rendering for .md only --- utils/doclint/linkUtils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/doclint/linkUtils.js b/utils/doclint/linkUtils.js index 9099c50ed93fe..a6e5433e0d3e6 100644 --- a/utils/doclint/linkUtils.js +++ b/utils/doclint/linkUtils.js @@ -62,8 +62,10 @@ function docsLinkRendererForLanguage(language, outputType) { if (!member || !member.clazz) throw new Error('Internal error'); const className = member.clazz.varName === 'playwrightAssertions' ? '' : member.clazz.varName + '.'; - if (member.kind === 'method') - return createMarkdownLink(languagePath, member, `${formatClassName(className, language)}${member.alias}()`); + if (member.kind === 'method') { + const args = outputType === 'ReleaseNotesMd' ? '' : renderJSSignature(member.argsArray); + return createMarkdownLink(languagePath, member, `${formatClassName(className, language)}${member.alias}(${args})`); + } if (member.kind === 'event') return createMarkdownLink(languagePath, member, `${className}on('${member.alias.toLowerCase()}')`); if (member.kind === 'property')