UNPKG

2.19 kBJSONView Raw
1{
2 "title": "MathFragment",
3 "@id": "stencila:MathFragment",
4 "extends": "Math",
5 "role": "secondary",
6 "status": "stable",
7 "category": "math",
8 "description": "A fragment of math, e.g a variable name, to be treated as inline content.",
9 "properties": {
10 "type": {
11 "@id": "schema:type",
12 "description": "The name of the type.",
13 "type": "string",
14 "enum": [
15 "MathFragment"
16 ],
17 "default": "MathFragment",
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 },
61 "file": "MathFragment.schema.yaml",
62 "children": [],
63 "descendants": [],
64 "$schema": "http://json-schema.org/draft-07/schema#",
65 "$id": "https://schema.stenci.la/v1/MathFragment.schema.json",
66 "source": "https://github.com/stencila/schema/blob/master/schema/MathFragment.schema.yaml",
67 "type": "object",
68 "additionalProperties": false,
69 "required": [
70 "type",
71 "text"
72 ],
73 "propertyAliases": {
74 "error": "errors"
75 }
76}