Skip to content

Commit 91a48c9

Browse files
authored
ask AI to explain code blocks (#821)
1 parent f4fa98a commit 91a48c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ To denote a `word` or `phrase` as code, enclose it in backticks (`).
1919

2020
### Code blocks
2121

22-
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks. Specify the programming language for syntax highlighting and to enable meta options. Add any meta options, like a title or icon, after the language.
22+
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks. Code blocks are copyable, and if you have the assistant enabled, users can ask AI to explain the code.
23+
24+
Specify the programming language for syntax highlighting and to enable meta options. Add any meta options, like a title or icon, after the language.
2325

2426
```java HelloWorld.java lines icon="java"
2527
class HelloWorld {

0 commit comments

Comments
 (0)