Skip to content

Commit

Permalink
fix(docs): allow multiline default value prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Jan 28, 2021
1 parent d7b7131 commit 9d8d91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/docs-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function getPropType(propType, file, { description, name }) {

function generateDefaultValue(value) {
if (value.defaultValue) {
return `\`${value.defaultValue.value}\``;
return `\`${value.defaultValue.value.replace(/\n/gm, '')}\``;
}

return '';
Expand Down

0 comments on commit 9d8d91c

Please sign in to comment.