Skip to main content


A mathematical variable or equation.

This is a base type for MathFragment and MathBlock and should not normally be instantiated. This type has a similar structure and purpose to Code which is a base type for CodeFragment, CodeBlock etc.


Name@idTypeDescriptionInherited from
textschema:textstringThe text of the equation in the language.Math
errorsstencila:errorsArray of stringErrors that occurred when parsing the math equation. See note 1.Math
idschema:idstringThe identifier for this item.Entity
mathLanguagestencila:mathLanguagestringThe language used for the equation e.g tex, mathml, asciimath.Math
metastencila:metaobjectMetadata associated with this item.Entity


  1. errors : This property is an array of strings. Compare this to CodeChunk.errors which is an array of CodeError nodes. Strings are considered to be sufficient for math parsing errors which usually won't have stack traces, line numbers etc.

Available as


This documentation was generated from Math.schema.yaml.