Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score100%
Downloads2/wk
Publisheda year ago (0.1.2)

Adds support for TeX (math) syntax to Eleventy projects

import type { KaTeXOptions } from "./options.ts"; /** The default delimiters. Includes `\(…\)` and `$…$` for inline TeX, and * `\[…\]` and `$$…$$` for display math. Delimiters may be escaped outside of * these contexts, e.g. `\$5 to \$7 dollars` will not render a formula. */ export const defaultDelimiters: Array<{ start: string; end: string; katexOptions?: KaTeXOptions; }> = [ { start: "\\[", end: "\\]", katexOptions: { displayMode: true } }, { start: "\\(", end: "\\)" }, { start: "$$", end: "$$", katexOptions: { displayMode: true } }, { start: "$", end: "$" }, ];