About


LaTeX Formulas

Inline: E=mc2E = mc^2 and block:

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}

Mermaid Diagram

graph TD
  A[Write MDX] --> B{Build}
  B -->|Static HTML| C[LaTeX ✓]
  B -->|CSR script| D[Mermaid ✓]

GFM Table

PackageRender timeOutput
rehype-katexBuild timeStatic HTML
rehype-mermaid-liteBuild time*<pre> tag
mermaid.jsClient sideSVG
rehype-pretty-codeBuild timeStatic 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