{
  "title": "Math",
  "@id": "stencila:Math",
  "extends": "Entity",
  "role": "base",
  "status": "unstable",
  "category": "prose",
  "description": "A mathematical variable or equation.",
  "$comment": "This is a base type for `MathFragment` and `MathBlock` and should not\nnormally be instantiated.\nThis type has a similar structure and purpose to `Code` which is a base type\nfor `CodeFragment`, `CodeBlock` etc.\n",
  "properties": {
    "type": {
      "@id": "schema:type",
      "description": "The name of the type.",
      "type": "string",
      "enum": [
        "Math",
        "MathBlock",
        "MathFragment"
      ],
      "default": "Math",
      "from": "Entity"
    },
    "id": {
      "@id": "schema:id",
      "description": "The identifier for this item.",
      "type": "string",
      "from": "Entity"
    },
    "meta": {
      "@id": "stencila:meta",
      "description": "Metadata associated with this item.",
      "type": "object",
      "from": "Entity"
    },
    "errors": {
      "@id": "stencila:errors",
      "description": "Errors that occurred when parsing the math equation.",
      "$comment": "This property is an array of strings. Compare this to `CodeChunk.errors`\nwhich is an array of `CodeError` nodes. Strings are considered to\nbe sufficient for math parsing errors which usually won't have stack traces,\nline numbers etc.\n",
      "type": "array",
      "items": {
        "type": "string"
      },
      "from": "Math",
      "aliases": [
        "error"
      ]
    },
    "mathLanguage": {
      "@id": "stencila:mathLanguage",
      "description": "The language used for the equation e.g tex, mathml, asciimath.",
      "type": "string",
      "default": "tex",
      "from": "Math"
    },
    "text": {
      "@id": "schema:text",
      "description": "The text of the equation in the language.",
      "type": "string",
      "from": "Math"
    }
  },
  "required": [
    "type",
    "text"
  ],
  "file": "Math.schema.yaml",
  "children": [
    "MathBlock",
    "MathFragment"
  ],
  "descendants": [
    "MathBlock",
    "MathFragment"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.stenci.la/v0/Math.schema.json",
  "source": "https://github.com/stencila/schema/blob/master/Math.schema.yaml",
  "type": "object",
  "propertyAliases": {
    "error": "errors"
  },
  "additionalProperties": false
}
