| 5 | import '../css/default.css'; |
| 6 | |
| 7 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected