Skip to content

Commit 8f836ba

Browse files
committed
Add syntax highlighting to post
1 parent 9afdf27 commit 8f836ba

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

posts/2025-07-22-diff3.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Two developers both made changes to this line, resulting in a merge conflict.
1818

1919
What's the correct resolution to the conflict?
2020

21-
```
21+
```diff
2222
<<<<<<<
2323
HELLO WORLD
2424
=======
@@ -72,13 +72,14 @@ D) We don't have enough information to say!
7272

7373
It depends on the context: What was the original version before both changes? There are two possible scenarios:
7474

75+
7576
<img src="/img/posts/diff3/diff3.png" alt="Two possible scenarios">
7677

7778
## The solution: diff3
7879

7980
The `diff3` option adds an extra section to your merge conflicts. Let's take a look at our conflict again using that option:
8081

81-
```
82+
```diff
8283
<<<<<<<
8384
HELLO WORLD
8485
|||||||
@@ -96,7 +97,7 @@ Now we can tell what the answer is. ([View the solution][solution])
9697

9798
To use this option, run this command: (Or manually modify your `gitconfig` file)
9899

99-
```
100+
```bash
100101
git config --global merge.conflictstyle diff3
101102
```
102103

src/styles/_typography.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,7 @@
220220
font-size: var(--font_size_lg);
221221
}
222222
}
223+
224+
.hljs {
225+
border-radius: 2px !important;
226+
}

0 commit comments

Comments
 (0)