fix: improve formatting of example code blocks in apply-diff-file.md and README generation for better readability

This commit is contained in:
mikerambil
2025-07-10 22:51:26 -05:00
parent 658e620422
commit 8095aeb3bd
2 changed files with 8 additions and 4 deletions

View File

@@ -4,22 +4,25 @@
# Apply Diff File
![Category: Patch & Diff](https://img.shields.io/badge/Category-Patch%20%26%20Diff-blue)
#### Command
```sh
git apply changes.diff
```
#### Examples
- **Apply a diff file of uncommitted changes.**
```sh
git apply changes.diff```
git apply changes.diff
```
- **Show what would change if the diff were applied.**
```sh
````sh
git apply --stat changes.diff```
@@ -32,3 +35,4 @@ git apply --stat changes.diff```
---
_Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, apply, uncommitted_
````

View File

@@ -97,7 +97,7 @@ function renderExamples(examples) {
if (!examples || !examples.length) return '';
let out = '';
examples.forEach((ex) => {
out += `- **${ex.description || ''}**\n\n\`\`\`sh\n${ex.code}\`\`\`\n`;
out += `- **${ex.description || ''}** \n\n \`\`\`sh\n${ex.code}\`\`\`\n`;
});
return renderSection('Examples', out);
}