Fork me on GitHub

core/mathatom

See also the class MathAtom

Classes

MathAtom

Methods

decompose(context: Context, atoms: MathAtom | MathAtom[]): Span[]privatestatic

Return a list of spans equivalent to atoms. A span is the most elementary type possible, for example 'text' or 'vlist', while the input atoms may be more abstract and complex, such as 'genfrac'

context : Context

Font family, variant, size, color, etc...

atoms : MathAtom | MathAtom[]
: Span[]   

makeRoot(parseMode: string, body: MathAtom[]): MathAtom[]privatestatic

Return an atom suitable for use as the root of a formula.

parseMode : string
body : MathAtom[]
: MathAtom[]