We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba4b1b commit 30c1bf6Copy full SHA for 30c1bf6
1 file changed
plugins/docusaurus-plugin-ionic-component-api/index.js
@@ -331,7 +331,12 @@ function renderSlots({ slots }) {
331
return `
332
| Name | Description |
333
| --- | --- |
334
-${slots.map((slot) => `| \`${slot.name}\` | ${formatMultiline(slot.docs)} |`).join('\n')}
335
-
+${slots
+ .map((slot) => {
336
+ const slotName = slot.name?.trim();
337
+ const displayedSlotName = slotName ? `\`${slotName}\`` : '';
338
+ return `| ${displayedSlotName} | ${formatMultiline(slot.docs)} |`;
339
+ })
340
+ .join('\n')}
341
`;
342
}
0 commit comments