UNPKG

2.05 kBJSONView Raw
1{
2 "title": "Delete",
3 "@id": "stencila:Delete",
4 "extends": "Mark",
5 "role": "secondary",
6 "status": "stable",
7 "category": "text",
8 "description": "Content that is marked for deletion",
9 "$comment": "Analogues of `Delete` in other schema include:\n - HTML [`<del>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del)\n - JATS XML [`<strike>`](https://jats.nlm.nih.gov/archiving/tag-library/1.2/element/strike.html)\n - MDAST [`Delete`](https://github.com/syntax-tree/mdast#delete)\n - Pandoc [`Strikeout`](https://github.com/jgm/pandoc-types/blob/1.17.5.4/Text/Pandoc/Definition.hs#L258)\n",
10 "properties": {
11 "type": {
12 "@id": "schema:type",
13 "description": "The name of the type.",
14 "type": "string",
15 "enum": [
16 "Delete"
17 ],
18 "default": "Delete",
19 "from": "Entity"
20 },
21 "id": {
22 "@id": "schema:id",
23 "description": "The identifier for this item.",
24 "type": "string",
25 "from": "Entity"
26 },
27 "meta": {
28 "@id": "stencila:meta",
29 "description": "Metadata associated with this item.",
30 "type": "object",
31 "from": "Entity"
32 },
33 "content": {
34 "@id": "stencila:content",
35 "description": "The content that is marked.",
36 "type": "array",
37 "items": {
38 "$ref": "InlineContent.schema.json"
39 },
40 "from": "Mark",
41 "isArray": true
42 }
43 },
44 "examples": [
45 {
46 "type": "Paragraph",
47 "content": [
48 "The following is ",
49 {
50 "type": "Delete",
51 "content": [
52 "marked for deletion"
53 ]
54 },
55 "."
56 ]
57 }
58 ],
59 "file": "Delete.schema.yaml",
60 "children": [],
61 "descendants": [],
62 "$schema": "http://json-schema.org/draft-07/schema#",
63 "$id": "https://schema.stenci.la/v1/Delete.schema.json",
64 "source": "https://github.com/stencila/schema/blob/master/schema/Delete.schema.yaml",
65 "type": "object",
66 "additionalProperties": false,
67 "required": [
68 "type",
69 "content"
70 ],
71 "propertyAliases": {}
72}