File size: 857 Bytes
f56a29b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export interface MML2OMMLOptions {
  /**
   * Whether to disable XML decoding of input
   */
  disableDecode?: boolean
}

/**
 * Convert MathML to Office Open XML Math (OMML) format
 *
 * @param mmlString - MathML string to convert
 * @param options - Optional configuration options
 * @returns OMML string
 */
export function mml2omml(mmlString: string, options?: MML2OMMLOptions): string

/**
 * MML2OMML class for converting MathML to OMML
 */
export class MML2OMML {
  /**
   * Construct a new MML2OMML converter
   *
   * @param mmlString - MathML string to convert
   * @param options - Optional configuration options
   */
  constructor(mmlString: string, options?: MML2OMMLOptions)

  /**
   * Run the conversion process
   */
  run(): void

  /**
   * Get the resulting OMML as a string
   *
   * @returns OMML string
   */
  getResult(): string
}