@@ -78,7 +78,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
7878 str . AppendLine ( "sidebar_label: " + item . Name ) ;
7979 if ( item . Summary != null )
8080 // todo: run a regex replace to get rid of hyperlinks and inline code blocks?
81- str . AppendLine ( $ "description: \" { items . GetSummary ( item . Summary ) ? . Trim ( ) . Replace ( "\" " , "\\ \" " ) } \" ") ;
81+ str . AppendLine ( $ "description: \" { item . GetSummary ( items , item . Summary ) ? . Trim ( ) . Replace ( "\" " , "\\ \" " ) } \" ") ;
8282 str . AppendLine ( "---" ) ;
8383 str . AppendLine ( ) ;
8484 if ( config . UseIconify )
@@ -88,7 +88,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
8888 }
8989
9090 str . AppendLine ( item . WithIconifyHeading ( "# " ) ) ;
91- str . AppendLine ( items . GetSummary ( item . Summary ) ? . Trim ( ) ) ;
91+ str . AppendLine ( item . GetSummary ( items , item . Summary ) ? . Trim ( ) ) ;
9292 str . AppendLine ( ) ;
9393 str . AppendLine ( $ "###### **Assembly**: { item . Assemblies [ 0 ] } .dll") ;
9494 MarkdownWritingExtensions . Declaration ( str , item ) ;
@@ -103,7 +103,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
103103 str . AppendLine ( property . WithIconifyHeading ( ) ) ;
104104 else
105105 str . AppendLine ( $ "### { property . Name } ") ;
106- str . AppendLine ( items . GetSummary ( property . Summary ) ? . Trim ( ) ) ;
106+ str . AppendLine ( item . GetSummary ( items , property . Summary ) ? . Trim ( ) ) ;
107107 MarkdownWritingExtensions . Declaration ( str , property ) ;
108108 }
109109 }
@@ -119,7 +119,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
119119 str . AppendLine ( property . WithIconifyHeading ( ) ) ;
120120 else
121121 str . AppendLine ( $ "### { property . Name } ") ;
122- str . AppendLine ( items . GetSummary ( property . Summary ) ? . Trim ( ) ) ;
122+ str . AppendLine ( item . GetSummary ( items , property . Summary ) ? . Trim ( ) ) ;
123123 MarkdownWritingExtensions . Declaration ( str , property ) ;
124124 }
125125 }
@@ -133,7 +133,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
133133 foreach ( var field in fields )
134134 {
135135 str . AppendLine ( config . UseIconify ? field . WithIconifyHeading ( ) : $ "### { field . Name } ") ;
136- str . AppendLine ( items . GetSummary ( field . Summary ) ? . Trim ( ) ) ;
136+ str . AppendLine ( item . GetSummary ( items , field . Summary ) ? . Trim ( ) ) ;
137137 MarkdownWritingExtensions . Declaration ( str , field ) ;
138138 }
139139 }
@@ -168,7 +168,7 @@ await Parallel.ForEachAsync(items, async (kvp, _) =>
168168 foreach ( var @event in events )
169169 {
170170 str . AppendLine ( $ "### { @event . Name . HtmlEscape ( ) } ") ;
171- str . AppendLine ( items . GetSummary ( @event . Summary ) ? . Trim ( ) ) ;
171+ str . AppendLine ( item . GetSummary ( items , @event . Summary ) ? . Trim ( ) ) ;
172172 MarkdownWritingExtensions . Declaration ( str , @event ) ;
173173 str . AppendLine ( "##### Event Type" ) ;
174174 if ( @event . Syntax . Return . Description == null )
@@ -219,7 +219,7 @@ void Do(string type, string header)
219219 foreach ( var item1 in @where . OrderBy ( i => i . Name ) )
220220 {
221221 str . AppendLine ( $ "### { items . Link ( item1 . Uid , config , true ) } ") ;
222- str . AppendLine ( items . GetSummary ( item1 . Summary ) ? . Trim ( ) ) ;
222+ str . AppendLine ( item . GetSummary ( items , item1 . Summary ) ? . Trim ( ) ) ;
223223 }
224224 }
225225 }
0 commit comments