mirror of
https://github.com/quartz-community/latex.git
synced 2026-07-22 02:50:29 +00:00
No description
- Update types/globals.d.ts with centralized type declarations - Add @myriaddreamin/rehype-typst as devDependency - Add .prettierignore, update .eslintrc.json with triple-slash-reference override |
||
|---|---|---|
| .github/workflows | ||
| dist | ||
| src | ||
| test | ||
| types | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@quartz-community/latex
Renders LaTeX math equations using KaTeX, MathJax, or Typst rendering engines.
Installation
npx quartz plugin add github:quartz-community/latex
Usage
plugins:
- source: github:quartz-community/latex
enabled: true
options:
renderEngine: katex
For advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.Latex({
renderEngine: "katex",
});
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
renderEngine |
"katex" | "mathjax" | "typst" |
"katex" |
The rendering engine to use for LaTeX. |
customMacros |
Record<string, string | Args[]> |
{} |
Custom LaTeX macros. |
katexOptions |
KatexOptions |
undefined |
Options for the KaTeX engine. |
mathJaxOptions |
MathjaxOptions |
undefined |
Options for the MathJax engine. |
typstOptions |
TypstOptions |
undefined |
Options for the Typst engine. |
Documentation
See the Quartz documentation for more information.
License
MIT