Skip to main content

MathBlock

A block of math, e.g an equation, to be treated as block content.

Properties#

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

Related#

  • Parent: Math
  • Descendants: None

Notes#

  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.
  2. Available as JSON-LD.
  3. Available as JSON Schema.
  4. This documentation was generated from MathBlock.schema.yaml.