About
LaTeX Formulas
Inline: and block:
Mermaid Diagram
graph TD
A[Write MDX] --> B{Build}
B -->|Static HTML| C[LaTeX ✓]
B -->|CSR script| D[Mermaid ✓]
GFM Table
| Package | Render time | Output |
|---|---|---|
| rehype-katex | Build time | Static HTML |
| rehype-mermaid-lite | Build time* | <pre> tag |
| mermaid.js | Client side | SVG |
| rehype-pretty-code | Build time | Static HTML |
Syntax Highlighting
def newton_raphson(f, df, x0, tol=1e-7):
x = x0
while abs(f(x)) > tol:
x -= f(x) / df(x)
return x