mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(component-index): fix description line breaks
This commit is contained in:
parent
c7f664c7fb
commit
af8e3b1631
2 changed files with 189 additions and 211 deletions
|
@ -63,9 +63,9 @@ export function generateIndex(components, groups, pkg) {
|
|||
exported_props.forEach((prop, name) => {
|
||||
code += `| ${name}${
|
||||
prop.kind === "const" ? " (`constant`)" : ""
|
||||
} | ${formatType(prop.type)} | ${prop.value || "--"} | ${
|
||||
prop.description
|
||||
} |\n`;
|
||||
} | ${formatType(prop.type)} | ${
|
||||
prop.value || "--"
|
||||
} | ${prop.description.replace(/\n/g, ". ")} |\n`;
|
||||
});
|
||||
} else {
|
||||
code += "No exported props.\n\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue