@@ -18,6 +18,7 @@ import ChangelogList from '@src/components/ChangelogList.astro';
1818import ItemDescription from ' @src/components/ItemDescription.astro' ;
1919import EnhancedMarkdown from ' @src/components/EnhancedMarkdown.astro' ;
2020import PreviewImages from ' @src/components/PreviewImages.astro' ;
21+ import TemplateList from ' @src/components/TemplateList.astro' ;
2122
2223import { marked } from ' marked' ;
2324
@@ -241,6 +242,9 @@ let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
241242 <li >
242243 <strong >{ param .name } </strong >:
243244 <EnhancedMarkdown content = { param .description } inline = { true } />
245+ { param .templateList && (
246+ <TemplateList name = { param .templateList } />
247+ )}
244248 </li >
245249 ))}
246250 </ul >
@@ -258,6 +262,9 @@ let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
258262 <li >
259263 <strong >{ param .name } </strong > (default: <em >{ param .default } </em >):
260264 <EnhancedMarkdown content = { param .description } inline = { true } />
265+ { param .templateList && (
266+ <TemplateList name = { param .templateList } />
267+ )}
261268 </li >
262269 ))}
263270 </ul >
@@ -269,7 +276,12 @@ let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
269276 <h4 >Returns</h4 >
270277 <ul >
271278 { syntax .returns .values .map ((ret : any ) => (
272- <li set :html = { " <strong>" + ret .type + " </strong>: " + renderInlineMarkdown (ret .name )} />
279+ <li >
280+ <strong >{ ret .type } </strong >: { renderInlineMarkdown (ret .name )}
281+ { ret .templateList && (
282+ <TemplateList name = { ret .templateList } />
283+ )}
284+ </li >
273285 ))}
274286 </ul >
275287
0 commit comments