Markdown
Bold text, italic text, inline code, and a link.
A blockquote with a green left border.
Math — KaTeX
Inline:
Block:
Code
import numpy as np
def gaussian(x: np.ndarray, mu: float = 0, sigma: float = 1) -> np.ndarray:
return np.exp(-0.5 * ((x - mu) / sigma) ** 2) / (sigma * np.sqrt(2 * np.pi))const greet = (name: string): string => `Hello, ${name}!`;
console.log(greet("Yuxin"));Custom components
Tip:
Use Callout, Steps, Step, and Details components directly in any MDX file.
Show more detail
This content is hidden until the reader expands it.
Write a markdown file
Create a new .mdx file inside content/blog/.
Add frontmatter
Set title, date, summary, and tags at the top of the file.
Push to GitHub
git push triggers GitHub Actions and deploys automatically.