Fork me on GitHub

addons/debug

This module contains utilities to debug mathlive internal data structures.

It is also used by the automated test suite.

Methods

getSymbol(spans: object[], symbol: string | number | number[])privateinner

spans : object[]
symbol : string | number | number[]

specify which span to consider. If a string, a span whose body match the string If a number, the nth span in the list If an array, each element in the array indicate the nth child to traverse

getTag(spans: Span[], symbol: string): stringprivateinner

Return the tag ('span', 'var', etc...) of a span

spans : Span[]
symbol : string
: string   

getType(spans: Span[], symbol: string): stringprivateinner

Return the type ('mbin', etc...) of a span

spans : Span[]
symbol : string
: string