Skip to content

Conversation

@thgaskell
Copy link
Collaborator

Adds syntax highlighting for code diffs in markdown:

Light
image

Dark
image

Markdown

```jsx
function HighlightSomeText(highlight) {
  if (highlight) {
    // diff-remove
    console.log('Highlighted text found');
    // diff-add
    console.log('Highlighted text found');
    return 'This text is highlighted!';
  }

  return 'Nothing highlighted';
}
```

Copy link
Collaborator

@jaygiang jaygiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@thgaskell thgaskell merged commit 13399b9 into main May 2, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants