MCPcopy
hub / github.com/GitbookIO/gitbook / MathFormulaProps

Interface MathFormulaProps

packages/react-math/src/MathFormula.tsx:7–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import '../css/default.css';
6
7export interface MathFormulaProps {
8 /**
9 * The formula to render.
10 */
11 formula: string;
12
13 /**
14 * Whether to render the formula inline or as a block.
15 */
16 inline?: boolean;
17
18 /**
19 * Additional class name to apply to the rendered formula.
20 */
21 className?: string;
22
23 /**
24 * Fallback to render while loading the formula with MathJax or KateX.
25 */
26 fallback?: React.ReactNode;
27
28 /**
29 * URL to load assets from.
30 */
31 assetsUrl: string;
32}
33
34/**
35 * Render a math formula using KaTeX, and fallback to MathJax if KaTeX fails.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected