Skip to content

Commit daa1aea

Browse files
committed
update examples
1 parent 58d5cdf commit daa1aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Add a title after the programming language to label your code example. Titles ca
7676
const hello = "world";
7777
```
7878

79-
````mdx Code Block Example
79+
````mdx
8080
```javascript Code Block Example
8181
const hello = "world";
8282
```
@@ -98,7 +98,7 @@ const hello = "world";
9898
## Line Highlighting
9999
Highlight specific lines in your code blocks using `highlight` with the line numbers or ranges you want to highlight.
100100

101-
```javascript Line Highlighting Example highlight={1,3-5}
101+
```javascript Line Highlighting Example highlight={1-2,5}
102102
const greeting = "Hello, World!";
103103
function sayHello() {
104104
console.log(greeting);
@@ -107,7 +107,7 @@ sayHello();
107107
```
108108

109109
````mdx
110-
```javascript Line Highlighting Example highlight={1,3-5}
110+
```javascript Line Highlighting Example highlight={1-2,5}
111111
const greeting = "Hello, World!";
112112
function sayHello() {
113113
console.log(greeting);

0 commit comments

Comments
 (0)