| 1 | import type { RevealPlugin } from 'reveal.js'; |
| 2 | |
| 3 | // @ts-expect-error The runtime implementation remains in JS during the migration. |
| 4 | import MathImplementation from './plugin.js'; |
| 5 | |
| 6 | export interface KaTeXPlugin extends RevealPlugin { |
| 7 | id: 'katex'; |
| 8 | } |
| 9 | |
| 10 | export interface MathJax2Plugin extends RevealPlugin { |
| 11 | id: 'mathjax2'; |
| 12 | } |
| 13 | |
| 14 | export interface MathJax3Plugin extends RevealPlugin { |
| 15 | id: 'mathjax3'; |
| 16 | } |
| 17 | |
| 18 | export interface MathJax4Plugin extends RevealPlugin { |
| 19 | id: 'mathjax4'; |
| 20 | } |
| 21 | |
| 22 | export interface MathPlugin extends MathJax2Plugin { |
| 23 | KaTeX: () => KaTeXPlugin; |
| 24 | MathJax2: () => MathJax2Plugin; |
| 25 | MathJax3: () => MathJax3Plugin; |
| 26 | MathJax4: () => MathJax4Plugin; |
| 27 | } |
| 28 | |
| 29 | const Math = MathImplementation as MathPlugin; |
| 30 | |
| 31 | export default Math; |
| 32 |