mdgarden

Math

1 min read#showcase#math

Math is rendered with KaTeX, fully self-hosted (fonts included in the build output — no CDN, no runtime download).

Inline

The reading-time estimate is t=w/200t = \lceil w / 200 \rceil minutes, where ww is the word count.

Block

cosine similarity=ABAB\text{cosine similarity} = \frac{A \cdot B}{\lVert A \rVert \, \lVert B \rVert}

The graph view lays out notes with a force-directed simulation:

Fij=kqiqjrij2(repulsion between unconnected nodes i,j)F_{ij} = k \frac{q_i q_j}{r_{ij}^2} \qquad \text{(repulsion between unconnected nodes } i, j\text{)}

i=1n(xixˉ)2=variance×n\sum_{i=1}^{n} \left( x_i - \bar{x} \right)^2 = \text{variance} \times n

Disabling math

mdgarden config set features.math false skips loading KaTeX's CSS and fonts entirely for vaults that don't need it.

Built with mdgarden