Hello MDX
Strikethrough
removed
Task List
- Write the press release
- Update the website
- Contact the media
Table
| Syntax | Description | Test Text |
|---|---|---|
| Header | Title | Here's this |
| Paragraph | Text | And more |
| Strikethrough |
Autolinks
Visit https://nextjs.org (opens in a new tab).
Custom Heading Id
Long heading about Nextra
Syntax Highlighting
Visit https://nextra.site/docs/guide/syntax-highlighting#features (opens in a new tab) for more
console.log("hello, world");Inlined Code
Inlined syntax highlighting is also supported let x = 1 via:
Highlighting Lines
import { useState } from "react";
function Counter() {
const [count, setCount] = useState(0);
return <button onClick={() => setCount(count + 1)}>{count}</button>;
}Highlighting Substrings
import { useState } from "react";
function Counter() {
const [count, setCount] = useState(0);
return <button onClick={() => setCount(count + 1)}>{count}</button>;
}Copy Button
console.log("hello, world");Line Numbers
import { useState } from "react";
function Counter() {
const [count, setCount] = useState(0);
return <button onClick={() => setCount(count + 1)}>{count}</button>;
}Filenames and Titles
example.js
console.log("hello, world");Example
console.log("hello, world");ANSI Highlighting
✓ src/index.test.ts (1)
Test Files 1 passed (1)
Tests 1 passed (1)
Start at 23:32:41
Duration 11ms
PASS Waiting for file changes...
press h to show help, press q to quitBuilt in Components
Visit https://nextra.site/docs/guide/built-ins (opens in a new tab)