You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code.mdx
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Code"
3
3
description: "Display inline code and code blocks"
4
-
icon: 'code'
4
+
icon: "code"
5
5
---
6
6
7
7
## Basic
@@ -14,8 +14,6 @@ To denote a `word` or `phrase` as code, enclose it in backticks (\`).
14
14
To denote a `word` or `phrase` as code, enclose it in backticks (`).
15
15
```
16
16
17
-
18
-
19
17
### Code Block
20
18
21
19
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks and follow the leading ticks with the programming language of your snippet to get syntax highlighting. Optionally, you can also write the name of your code after the programming language.
@@ -62,27 +60,29 @@ class HelloWorld {
62
60
63
61
We use [Shiki](https://shiki.style/guide) for syntax highlighting and support these languages:
0 commit comments