diff --git a/scripts/generateMarkdown.sh b/scripts/generateMarkdown.sh index 2bc8b5c2c..37f8e3cb0 100755 --- a/scripts/generateMarkdown.sh +++ b/scripts/generateMarkdown.sh @@ -32,8 +32,8 @@ function generatePropType(type) { if (Array.isArray(type.value)) { values = '(' + type.value.map(function(typeValue) { - return (typeValue.name || typeValue.value).replace(/\|/g, '\\|'); - }).join('|') + + return typeValue.name || typeValue.value; + }).join('\\|') + ')'; } else { values = type.value;