Skip to content

Commit 0e96132

Browse files
committed
icon section
1 parent 200dd11 commit 0e96132

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

code.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,17 @@ const hello = "world";
177177
````
178178

179179
## Icon
180-
TODO: - icon `string`: it can be a fontawesome icon, lucide icon, or icon with absolute url (no icons with relative paths yet)
180+
Add an icon to a code block using a string. You can use FontAwesome icons, Lucide icons, or icons with absolute URLs.
181+
182+
```javascript icon="globe"
183+
const hello = "world";
184+
```
185+
186+
````md icon="globe"
187+
```javascript icon="globe"
188+
const hello = "world";
189+
```
190+
````
181191

182192
## Line Highlighting
183193
TODO: - highlight `expression | string`: `{1, 3-5}` or `"1, 4-5"`

0 commit comments

Comments
 (0)