Skip to content

Commit

Permalink
Update generateMarkdown.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rkolupaev authored and alex-shamshurin committed Jun 21, 2017
1 parent a8c5fbe commit 2e58d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateMarkdown.sh
Expand Up @@ -32,7 +32,7 @@ function generatePropType(type) {
if (Array.isArray(type.value)) {
values = '(' +
type.value.map(function(typeValue) {
return typeValue.name || typeValue.value;
return (typeValue.name || typeValue.value).replace(/\|/g, '\\|');
}).join('|') +
')';
} else {
Expand Down

0 comments on commit 2e58d05

Please sign in to comment.