mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-22 14:21:24 +00:00
.github
content
docs
advanced
features
Docker Support.md
Latex.md
Mermaid diagrams.md
Obsidian compatibility.md
OxHugo compatibility.md
RSS Feed.md
SPA Routing.md
backlinks.md
breadcrumbs.md
callouts.md
darkmode.md
explorer.md
folder and tag listings.md
full-text search.md
graph view.md
index.md
popover previews.md
private pages.md
recent notes.md
syntax highlighting.md
table of contents.md
upcoming features.md
wikilinks.md
images
tags
authoring content.md
build.md
configuration.md
hosting.md
index.md
layout.md
migrating from Quartz 3.md
philosophy.md
setting up your GitHub repository.md
showcase.md
upgrading.md
quartz
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
Dockerfile
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
1.5 KiB
1.5 KiB
tags
tags | |
---|---|
|
Quartz uses Katex by default to typeset both inline and block math expressions at build time.
Syntax
Block Math
Block math can be rendered by delimiting math expression with $$
.
$$
f(x) = \int_{-\infty}^\infty
f\hat(\xi),e^{2 \pi i \xi x}
\,d\xi
$$
f(x) = \int_{-\infty}^\infty
f\hat(\xi),e^{2 \pi i \xi x}
\,d\xi
\begin{aligned}
a &= b + c \\ &= e + f \\
\end{aligned}
\begin{bmatrix}
1 & 2 & 3 \\
a & b & c
\end{bmatrix}
Inline Math
Similarly, inline math can be rendered by delimiting math expression with a single $
. For example, $e^{i\pi} = -1$
produces e^{i\pi} = -1
Escaping symbols
There will be cases where you may have more than one $
in a paragraph at once which may accidentally trigger MathJax/Katex.
To get around this, you can escape the dollar sign by doing \$
instead.
For example:
- Incorrect:
I have $1 and you have $2
produces I have $1 and you have $2 - Correct:
I have \$1 and you have \$2
produces I have $1 and you have $2
MathJax
In quartz.config.ts
, you can configure Quartz to use MathJax SVG rendering by replacing Plugin.Latex({ renderEngine: 'katex' })
with Plugin.Latex({ renderEngine: 'mathjax' })
Customization
- Removing Latex support: remove all instances of
Plugin.Latex()
fromquartz.config.ts
. - Plugin:
quartz/plugins/transformers/latex.ts