1 | {
|
2 | "title": "MathBlock",
|
3 | "@id": "stencila:MathBlock",
|
4 | "extends": "Math",
|
5 | "role": "secondary",
|
6 | "status": "stable",
|
7 | "category": "math",
|
8 | "description": "A block of math, e.g an equation, to be treated as block content.",
|
9 | "properties": {
|
10 | "type": {
|
11 | "@id": "schema:type",
|
12 | "description": "The name of the type.",
|
13 | "type": "string",
|
14 | "enum": [
|
15 | "MathBlock"
|
16 | ],
|
17 | "default": "MathBlock",
|
18 | "from": "Entity"
|
19 | },
|
20 | "id": {
|
21 | "@id": "schema:id",
|
22 | "description": "The identifier for this item.",
|
23 | "type": "string",
|
24 | "from": "Entity"
|
25 | },
|
26 | "meta": {
|
27 | "@id": "stencila:meta",
|
28 | "description": "Metadata associated with this item.",
|
29 | "type": "object",
|
30 | "from": "Entity"
|
31 | },
|
32 | "errors": {
|
33 | "@id": "stencila:errors",
|
34 | "description": "Errors that occurred when parsing the math equation.",
|
35 | "$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",
|
36 | "type": "array",
|
37 | "items": {
|
38 | "type": "string"
|
39 | },
|
40 | "from": "Math",
|
41 | "isArray": true,
|
42 | "isPlural": true,
|
43 | "aliases": [
|
44 | "error"
|
45 | ]
|
46 | },
|
47 | "mathLanguage": {
|
48 | "@id": "stencila:mathLanguage",
|
49 | "description": "The language used for the equation e.g tex, mathml, asciimath.",
|
50 | "type": "string",
|
51 | "default": "tex",
|
52 | "from": "Math"
|
53 | },
|
54 | "text": {
|
55 | "@id": "schema:text",
|
56 | "description": "The text of the equation in the language.",
|
57 | "type": "string",
|
58 | "from": "Math"
|
59 | },
|
60 | "label": {
|
61 | "@id": "stencila:label",
|
62 | "description": "A short label for the math block.",
|
63 | "type": "string",
|
64 | "from": "MathBlock"
|
65 | }
|
66 | },
|
67 | "file": "MathBlock.schema.yaml",
|
68 | "children": [],
|
69 | "descendants": [],
|
70 | "$schema": "http://json-schema.org/draft-07/schema#",
|
71 | "$id": "https://schema.stenci.la/v1/MathBlock.schema.json",
|
72 | "source": "https://github.com/stencila/schema/blob/master/schema/MathBlock.schema.yaml",
|
73 | "type": "object",
|
74 | "additionalProperties": false,
|
75 | "required": [
|
76 | "type",
|
77 | "text"
|
78 | ],
|
79 | "propertyAliases": {
|
80 | "error": "errors"
|
81 | }
|
82 | }
|