mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* add stackbit.yaml * update field model for slug * add config model * update language config model * update menu model * katex should be a boolean value * add labelField to menu item model * math should be a boolean value * Add 1-click create with stackbit button
670 B
670 B
+++ date = "2019-03-20" title = "Render LaTeX using KaTeX" description = "Katex support demo" katex = true series = ["Theme", "Hugo"] +++
Enable katex by adding katex = "true" to the front matter
+++
katex = "true"
+++
It's almost a dropin alternative to the mathjax solution,you should just choose one of them.
Inline math looks like this
This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$
This is text with inline math \sum_{n=1}^{\infty} 2^{-n} = 1
and with math blocks:
$$
\sum_{n=1}^{\infty} 2^{-n} = 1
$$
\sum_{n=1}^{\infty} 2^{-n} = 1