To include LaTeX equations in Markdown, use MathJax or native LaTeX syntax with proper delimiters. Support varies by platform, but most modern Markdown processors handle basic LaTeX math expressions. Here's how to implement it:
Inline Equations
Wrap equations in single $ or \(...\):
markdown
The volume of a sphere is $V = \frac{4}{3}\pi r^3$ [1][6].
Renders as:
The volume of a sphere is (V = \frac{4}{3}\pi r^3).
Display Equations
Use double $$ or \[...\] for standalone equations:
markdown
$$
\begin{align}
\tag{1.1}
E = mc^2
\end{align}
$$
Renders as:
[
\begin{align}
\tag{1.1}
E = mc^2
\end{align}
]
Platform-Specific Support
Platform
Syntax
Notes
GitHub
$$...$$ or ```math
Requires no extra setup [8].
Jupyter
$$...$$ or \\(...\\)
Built-in MathJax support [1][5].
Jekyll/Web
Add MathJax script
Insert HTML to enable rendering [1].
Confluence
Plugins like LaTeX Math
Requires admin installation [4].
R Markdown
Native LaTeX syntax
Directly integrates with PDF/HTML output [9].
Advanced Features
Equation Numbering:
Use \tag{} or \label{} with \eqref{} for references: