Skip to content

Commit ce16313

Browse files
committed
update md to mdx
1 parent 4382d23 commit ce16313

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

code.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HelloWorld {
2929
}
3030
```
3131

32-
````md
32+
````mdx
3333
```java HelloWorld.java
3434
class HelloWorld {
3535
public static void main(String[] args) {
@@ -55,7 +55,7 @@ class HelloWorld {
5555
}
5656
```
5757

58-
````md
58+
````mdx
5959
```java
6060
class HelloWorld {
6161
public static void main(String[] args) {
@@ -171,7 +171,7 @@ Add a title after the programming language to label your code example. Titles ca
171171
const hello = "world";
172172
```
173173

174-
````md Code Block Example
174+
````mdx Code Block Example
175175
```javascript Code Block Example
176176
const hello = "world";
177177
```
@@ -180,12 +180,12 @@ const hello = "world";
180180
## Icon
181181
Add an icon to your code block. You can use FontAwesome icons, Lucide icons, or absolute URLs.
182182

183-
```javascript icon="js"
183+
```javascript icon="square-js"
184184
const hello = "world";
185185
```
186186

187-
````md icon="js"
188-
```javascript icon="globe"
187+
````mdx
188+
```javascript icon="square-js"
189189
const hello = "world";
190190
```
191191
````
@@ -201,7 +201,7 @@ function sayHello() {
201201
sayHello();
202202
```
203203

204-
````md
204+
````mdx
205205
```javascript Line Highlighting Example highlight={1,3-5}
206206
const greeting = "Hello, World!";
207207
function sayHello() {
@@ -222,7 +222,7 @@ function sayHello() {
222222
sayHello();
223223
```
224224

225-
````md
225+
````mdx
226226
```javascript Line Focus Example focus={2,4-5}
227227
const greeting = "Hello, World!";
228228
function sayHello() {
@@ -243,7 +243,7 @@ function sayHello() {
243243
sayHello();
244244
```
245245

246-
````md
246+
````mdx
247247
```javascript Show Line Numbers Example lines
248248
const greeting = "Hello, World!";
249249
function sayHello() {
@@ -346,7 +346,7 @@ if __name__ == "__main__":
346346
main()
347347
```
348348

349-
````md
349+
````mdx
350350
```python Expandable Example expandable
351351
from datetime import datetime, timedelta
352352
from typing import Dict, List, Optional
@@ -370,7 +370,7 @@ function sayHello() {
370370
sayHello();
371371
```
372372

373-
````md
373+
````mdx
374374
```javascript Wrap Example wrap
375375
const greeting = "Hello, World! I am a long line of text that will wrap to the next line.";
376376
function sayHello() {

0 commit comments

Comments
 (0)