Skip to content

Commit

Permalink
add a new line before 'Example Value:'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuanAndOnly99 authored Apr 25, 2024
1 parent f90bdce commit 54477ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function processProperty(propertyName, propertyDetails, schemaExamples, required

if (schemaExamples) {
schemaExamples.forEach((example) => {
markdownContent += `**Example Value**: \n`;
markdownContent += `\n**Example Value**: \n`;
if (typeof example[propertyName] === 'object') {
markdownContent += `\`\`\`json\n${JSON.stringify(example[propertyName], null, 2)}\n\`\`\`\n\n`;
} else if (example[propertyName]) {
Expand Down Expand Up @@ -257,4 +257,4 @@ function main() {

if (require.main === module) {
main();
}
}

0 comments on commit 54477ae

Please sign in to comment.