@@ -52,7 +52,7 @@ export function getMarkdownContent() {
5252 // Extract all PlatformSection blocks
5353 const platformSectionRegex = / < P l a t f o r m S e c t i o n \s + ( [ ^ > ] * ) > ( [ \s \S ] * ?) < \/ P l a t f o r m S e c t i o n > / g;
5454
55- return content . replace ( platformSectionRegex , ( match , attributes , sectionContent ) => {
55+ return content . replace ( platformSectionRegex , ( attributes , sectionContent ) => {
5656 // Check if this section should be included or excluded based on SDK
5757 const supportedMatch = attributes . match ( / s u p p o r t e d = \{ ( \[ [ ^ \] ] * \] ) \} / ) ;
5858 const notSupportedMatch = attributes . match ( / n o t S u p p o r t e d = \{ ( \[ [ ^ \] ] * \] ) \} / ) ;
@@ -108,7 +108,7 @@ export function getMarkdownContent() {
108108 // Extract all PlatformCategorySection blocks
109109 const platformCategorySectionRegex = / < P l a t f o r m C a t e g o r y S e c t i o n \s + ( [ ^ > ] * ) > ( [ \s \S ] * ?) < \/ P l a t f o r m C a t e g o r y S e c t i o n > / g;
110110
111- return content . replace ( platformCategorySectionRegex , ( match , attributes , sectionContent ) => {
111+ return content . replace ( platformCategorySectionRegex , ( attributes , sectionContent ) => {
112112 // Check if this section should be included or excluded based on SDK
113113 const supportedMatch = attributes . match ( / s u p p o r t e d = \{ ( \[ [ ^ \] ] * \] ) \} / ) ;
114114 const notSupportedMatch = attributes . match ( / n o t S u p p o r t e d = \{ ( \[ [ ^ \] ] * \] ) \} / ) ;
@@ -157,7 +157,7 @@ export function getMarkdownContent() {
157157 // Match <PlatformContent includePath="path" /> patterns
158158 const platformContentRegex = / < P l a t f o r m C o n t e n t \s + i n c l u d e P a t h = " ( [ ^ " ] + ) " \s * \/ > / g;
159159
160- return content . replace ( platformContentRegex , ( match , includePath ) => {
160+ return content . replace ( platformContentRegex , ( includePath ) => {
161161 try {
162162 // Platform content is organized by SDK in platform-includes directory
163163 const platformIncludesDir = path . join ( process . cwd ( ) , 'platform-includes' , includePath ) ;
@@ -234,19 +234,19 @@ export function getMarkdownContent() {
234234 const processPlatformTags = ( content : string ) : string => {
235235 // Replace PlatformLink tags
236236 let processedContent = content . replace ( / < P l a t f o r m L i n k \s + t o = " ( [ ^ " ] + ) " > ( [ \s \S ] * ?) < \/ P l a t f o r m L i n k > / g,
237- ( match , to , linkText ) => `[${ linkText } ](${ to } )` ) ;
237+ ( to , linkText ) => `[${ linkText } ](${ to } )` ) ;
238238
239239 // Replace PlatformIdentifier tags
240240 processedContent = processedContent . replace ( / < P l a t f o r m I d e n t i f i e r \s + n a m e = " ( [ ^ " ] + ) " [ ^ > ] * \/ > / g,
241- ( match , name ) => `\`${ name } \`` ) ;
241+ ( name ) => `\`${ name } \`` ) ;
242242
243243 // Replace Alert tags
244244 processedContent = processedContent . replace ( / < A l e r t [ ^ > ] * > ( [ \s \S ] * ?) < \/ A l e r t > / g,
245- ( match , alertContent ) => `> **Note**\n> ${ alertContent . trim ( ) . replace ( / \n / g, '\n> ' ) } ` ) ;
245+ ( alertContent ) => `> **Note**\n> ${ alertContent . trim ( ) . replace ( / \n / g, '\n> ' ) } ` ) ;
246246
247247 // Replace code blocks with tabTitle
248248 processedContent = processedContent . replace ( / ` ` ` ( [ a - z A - Z ] + ) \s + \{ t a b T i t l e : \s * ( [ ^ } ] + ) \} ( [ \s \S ] * ?) ` ` ` / g,
249- ( match , language , title , code ) => `**${ title . trim ( ) } **\n\n\`\`\`${ language } \n${ code . trim ( ) } \n\`\`\`` ) ;
249+ ( language , title , code ) => `**${ title . trim ( ) } **\n\n\`\`\`${ language } \n${ code . trim ( ) } \n\`\`\`` ) ;
250250
251251 return processedContent ;
252252 } ;
@@ -258,7 +258,7 @@ export function getMarkdownContent() {
258258 // First process regular includes
259259 const includeRegex = / < I n c l u d e \s + n a m e = " ( [ ^ " ] + ) " \s * \/ > / g;
260260
261- let processedContent = content . replace ( includeRegex , ( match , includeName ) => {
261+ let processedContent = content . replace ( includeRegex , ( includeName ) => {
262262 const includePath = path . join ( process . cwd ( ) , 'includes' , includeName ) ;
263263
264264 if ( fs . existsSync ( includePath ) ) {
0 commit comments