Infrastructure update: Migrated from KaTeX to MathJax for math rendering. Although MathJax is a bit slower to load,1 it supports referencing numbered equations and linking to them.2

The following in markdown:

1
2
3
4
5
6
7
8
$$
\begin{equation}
\label{eq:1}
C = W\log_{2} (1+\mathrm{SNR})
\end{equation}
$$
 
See \eqref{eq:1}.

will result in:

$$ \begin{equation} \label{eq:1} C = W\log_{2} (1+\mathrm{SNR}) \end{equation} $$

See \eqref{eq:1}.

If only I could somehow make Obsidian render the labeled equation without errors


  1. See KaTeX and MathJax Comparison Demo↩︎

  2. Thanks to the developers of ox-hugo for pointing to the solution↩︎