From 7db2eda76cf51fd631d385c12a7b411339406067 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 23 Jul 2023 00:27:41 +0000
Subject: [PATCH] run prettier
---
content/features/Latex.md | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/content/features/Latex.md b/content/features/Latex.md
index 04bc366..3f523d6 100644
--- a/content/features/Latex.md
+++ b/content/features/Latex.md
@@ -3,6 +3,7 @@
## Formatting
### Block Math
+
Block math can be rendered by delimiting math expression with `$$`.
```
@@ -20,20 +21,25 @@
$$
### 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.
+
+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](https://docs.mathjax.org/en/latest/output/svg.html) by replacing `Plugin.Latex({ renderEngine: 'katex' })` with `Plugin.Latex({ renderEngine: 'mathjax' })`
## Customization
+
- Removing Latex support: remove all instances of `Plugin.Latex()` from `quartz.config.ts`.
-- Plugin: `quartz/plugins/transformers/latex.ts`
\ No newline at end of file
+- Plugin: `quartz/plugins/transformers/latex.ts`
--
Gitblit v1.10.0