Skip to content

Commit

Permalink
Add more demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Jul 3, 2024
1 parent 43b8dac commit 63e0bcb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/content/docs/en/article-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ const config: HardhatUserConfig = {
...
```

```js "return true;" ins="inserted" del="deleted"
function demo() {
console.log('These are inserted and deleted marker types');
// The return statement uses the default marker type
return true;
}
```

```diff lang="js"
function thisIsJavaScript() {
// This entire block gets highlighted as JavaScript,
// and we can still add diff markers to it!
- console.log('Old code to be removed')
+ console.log('New and shiny code!')
}
```

Let's see a horizontal rule.
---
Expand Down

0 comments on commit 63e0bcb

Please sign in to comment.