@markuplint/ml-spec 1.7.0 → 2.0.0-dev.20211213.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,10 +3,22 @@
3
3
  "Node": {
4
4
  "oneOf": [
5
5
  {
6
+ "description": "HTML Element",
6
7
  "type": "string",
7
- "pattern": "^[a-z][a-z0-9]+$"
8
+ "pattern": "^[a-z][a-z0-9]*$"
8
9
  },
9
10
  {
11
+ "description": "Namespaced HTML Element",
12
+ "type": "string",
13
+ "pattern": "^html:[a-z][a-z0-9]*$"
14
+ },
15
+ {
16
+ "description": "SVG Element",
17
+ "type": "string",
18
+ "pattern": "^svg:(?:[a-z][a-zA-Z0-9]*|[a-z][a-z0-9]*-[a-z][a-z0-9]*)$"
19
+ },
20
+ {
21
+ "description": "Text Node",
10
22
  "type": "string",
11
23
  "enum": ["#text"]
12
24
  },
@@ -25,7 +37,27 @@
25
37
  "#transparent",
26
38
  "#embedded",
27
39
  "#palpable",
28
- "#script-supporting"
40
+ "#script-supporting",
41
+ "#SVGAnimation",
42
+ "#SVGBasicShapes",
43
+ "#SVGContainer",
44
+ "#SVGDescriptive",
45
+ "#SVGFilterPrimitive",
46
+ "#SVGFont",
47
+ "#SVGGradient",
48
+ "#SVGGraphics",
49
+ "#SVGGraphicsReferencing",
50
+ "#SVGLightSource",
51
+ "#SVGNeverRendered",
52
+ "#SVGNone",
53
+ "#SVGPaintServer",
54
+ "#SVGRenderable",
55
+ "#SVGShape",
56
+ "#SVGStructural",
57
+ "#SVGStructurallyExternal",
58
+ "#SVGTextContent",
59
+ "#SVGTextContentChild",
60
+ "#SVGOtherXMLNamespace"
29
61
  ]
30
62
  },
31
63
  "Target": {
@@ -66,7 +98,8 @@
66
98
  "uniqueItems": true
67
99
  },
68
100
  "max": { "type": "number" },
69
- "min": { "type": "number" }
101
+ "min": { "type": "number" },
102
+ "_TODO_": { "type": "string" }
70
103
  }
71
104
  },
72
105
  "PermittedContentOptional": {
@@ -81,7 +114,8 @@
81
114
  "items": { "$ref": "#/definitions/Node" },
82
115
  "uniqueItems": true
83
116
  },
84
- "max": { "type": "number" }
117
+ "max": { "type": "number" },
118
+ "_TODO_": { "type": "string" }
85
119
  }
86
120
  },
87
121
  "PermittedContentOneOrMore": {
@@ -98,7 +132,8 @@
98
132
  "items": { "$ref": "#/definitions/Node" },
99
133
  "uniqueItems": true
100
134
  },
101
- "max": { "type": "number" }
135
+ "max": { "type": "number" },
136
+ "_TODO_": { "type": "string" }
102
137
  }
103
138
  },
104
139
  "PermittedContentZeroOrMore": {
@@ -115,7 +150,8 @@
115
150
  "items": { "$ref": "#/definitions/Node" },
116
151
  "uniqueItems": true
117
152
  },
118
- "max": { "type": "number" }
153
+ "max": { "type": "number" },
154
+ "_TODO_": { "type": "string" }
119
155
  }
120
156
  },
121
157
  "PermittedContentChoice": {
@@ -128,7 +164,8 @@
128
164
  "items": { "$ref": "#/definitions/PermittedContentSpec" },
129
165
  "minItems": 2,
130
166
  "maxItems": 5
131
- }
167
+ },
168
+ "_TODO_": { "type": "string" }
132
169
  }
133
170
  },
134
171
  "PermittedContentInterleave": {
@@ -140,7 +177,8 @@
140
177
  "type": "array",
141
178
  "items": { "$ref": "#/definitions/PermittedContentSpec" },
142
179
  "minItems": 2
143
- }
180
+ },
181
+ "_TODO_": { "type": "string" }
144
182
  }
145
183
  }
146
184
  },
@@ -171,7 +209,13 @@
171
209
  "additionalProperties": false,
172
210
  "required": ["parent"],
173
211
  "properties": {
174
- "parent": { "type": "string" }
212
+ "parent": { "type": "string" },
213
+ "hasNotAttr": {
214
+ "type": "string",
215
+ "description": "Not support yet"
216
+ },
217
+ "_TODO_": { "type": "string" },
218
+ "_parent": { "type": "string" }
175
219
  }
176
220
  }
177
221
  ]