Skip to content

Commit 235b794

Browse files
committed
fix: update example formatting in README generation to improve readability
1 parent 6f1bf35 commit 235b794

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/generate-readme.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ function renderExamples(examples) {
9797
if (!examples || !examples.length) return '';
9898
let out = '';
9999
examples.forEach((ex) => {
100-
out += `- **${ex.description || ''}**\n\n
101-
\`\`\`sh\n${ex.code}\n\`\`\`
102-
`;
100+
out += `- **${ex.description || ''}**\n\n${ex.code}\n`;
103101
});
104102
return renderSection('Examples', out);
105103
}

0 commit comments

Comments
 (0)