docs(component-index): fix description line breaks

This commit is contained in:
Eric Liu 2020-10-16 14:24:05 -07:00
commit af8e3b1631
2 changed files with 189 additions and 211 deletions

View file

@ -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";