This page demonstrates how to include mathematical expressions.
Individual pages can opt-in to supporting mathematical notation using MathJax, so that you can write expressions with LaTeX syntax, either inline or as a block.
Processing a page with MathJax can take a few seconds, so it is not enabled by
default on all pages.If you want to use MathJax, you must enable it in the
front matter of your page (i.e. add "mathjax"
to extensions
:
---
extensions: ["mathjax"]
---
In your page content, math expressions are delineated by $$
tags before and after the expression.
Block equation example
Code
Result
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]
Inline equation example
Code
Result
When \(a \ne 0\) , there are two solutions to \((ax^2 + bx + c = 0)\).
Further reading
See this excellent guide for a comprehensive introduction to MathJax with lots of examples.