logoJerry Wang

Code Block for MDX

  1. Line Highlighting:
  • Code:
```{lineNumber, ..., }
```{1,3}
  • Example:
echo "Hello, World!" 
echo "This is a code block."
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"
  1. Show Line Number
  • Code:
```showLineNumbers
  • Example: hello
echo "Hello, World!" 
echo "This is a code block."
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"
  1. Title:
  • Code:
```title={title}
```title="index.ts"
  • Example:
index.ts
echo "Hello, World!" 
echo "This is a code block."
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"
echo "Enjoy coding!"