(file-types:markdown)=
You can write content in regular Markdown files (e.g., files ending in .md
).
Jupyter Book supports any Markdown syntax that is supported by Jupyter notebooks.
Jupyter Notebook Markdown is an extension of a flavour of Markdown called
CommonMark Markdown.
It has many elements for standard text processing, though it lacks a lot of features used for
publishing and documentation.
If you'd like a more in-depth overview and guide to CommonMark Markdown, see
[the CommonMark Markdown tutorial](https://commonmark.org/help/tutorial/).
This page describes some basic features of the Jupyter Notebook Markdown, and how to include them with your book.
Jupyter Book also supports a fancier version of Markdown called **MyST Markdown**. This
is a slightly extended flavour of Jupyter Notebook Markdown. It
allows you to include citations and cross-references, and control more complex
functionality like adding content to the margin. For more
information, check out {doc}`../content/myst`.
You can reference external media like images from your Markdown file. If you use relative paths, then they will continue to work when the Markdown files are copied over, so long as they point to a file that's inside of the repository.
Here's an image relative to the book content root
It was generated with this code:

:::{seealso} for more information. :::
You can even embed references to movies on the web! For example, here's a little GIF for you!
This will be included in your book when it is built.
For HTML outputs, Jupyter Book uses the excellent MathJax library, along with the default Jupyter Notebook configuration, for rendering mathematics from LaTeX-style syntax.
For example, here's a mathematical expression rendered with MathJax:
:::{seealso} for more information. :::
You can include block-level mathematics by wrapping your formulas in $$
characters.
For example, the following block:
$$
wow = its^{math}
$$
Results in this output:
You can also include math blocks by using LaTeX-style syntax using \begin{align*}
.
For example, the following block:
\begin{align*}
yep = its_{more}^{math}
\end{align*}
Results in:
\begin{align*} yep = its_{more}^{math} \end{align*}
:::{important}
This requires the amsmath
MyST extension to be enabled.
:::
In addition to CommonMark Markdown, Jupyter Book also supports a more fully-featured version of Markdown called MyST Markdown. This is a superset of CommonMark that includes syntactic pieces that are useful for publishing computational narratives. For more information about MyST Markdown, see .