Skip to content

Commit

Permalink
Fixed broken latex in _posts/2015-10-20-math.md (alshedivat#2219)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kroist and george-gca authored Feb 22, 2024
1 parent 9f4d6d2 commit b607e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
assets/css/main.scss
assets/plotly/demo.html
lighthouse_results/**
_posts/2015-10-20-math.md
2 changes: 1 addition & 1 deletion _posts/2015-10-20-math.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit b607e58

Please sign in to comment.