From b607e580adbf2b96194dce79146f8aa201016da3 Mon Sep 17 00:00:00 2001 From: Maksym Zub Date: Thu, 22 Feb 2024 18:43:42 +0100 Subject: [PATCH] Fixed broken latex in _posts/2015-10-20-math.md (#2219) Latex math is currently broken in [_posts/2015-10-20-math.md](https://alshedivat.github.io/al-folio/blog/2015/math/) . Fixed it by replacing starts with underscore --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com> --- .prettierignore | 1 + _posts/2015-10-20-math.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 58c2d1e722bd..f917ab0212d1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,4 @@ assets/css/main.scss assets/plotly/demo.html lighthouse_results/** +_posts/2015-10-20-math.md diff --git a/_posts/2015-10-20-math.md b/_posts/2015-10-20-math.md index e7a614ef1ab4..9ef0657badbe 100644 --- a/_posts/2015-10-20-math.md +++ b/_posts/2015-10-20-math.md @@ -21,7 +21,7 @@ MathJax will automatically number equations: \begin{equation} \label{eq:cauchy-schwarz} -\left( \sum*{k=1}^n a_k b_k \right)^2 \leq \left( \sum*{k=1}^n a*k^2 \right) \left( \sum*{k=1}^n b_k^2 \right) +\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \end{equation} and by adding `\label{...}` inside the equation environment, we can now refer to the equation using `\eqref`.