UNPKG

2.46 kBJSONView Raw
1{
2 "title": "Paragraph",
3 "@id": "stencila:Paragraph",
4 "extends": "Entity",
5 "role": "secondary",
6 "status": "stable",
7 "category": "text",
8 "description": "Paragraph",
9 "$comment": "Analogues of `Paragraph` in other schema include:\n - HTML [`<p>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)\n - JATS XML [`<p>`](https://jats.nlm.nih.gov/articleauthoring/tag-library/1.2/element/p.html)\n - MDAST [`Paragraph`](https://github.com/syntax-tree/mdast#Paragraph)\n - OpenDocument [`<text:p>`](http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415138_253892949)\n - Pandoc [`Para`](https://github.com/jgm/pandoc-types/blob/1.17.5.4/Text/Pandoc/Definition.hs#L220)\n",
10 "properties": {
11 "type": {
12 "@id": "schema:type",
13 "description": "The name of the type.",
14 "type": "string",
15 "enum": [
16 "Paragraph"
17 ],
18 "default": "Paragraph",
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 contents of the paragraph.",
36 "type": "array",
37 "items": {
38 "$ref": "InlineContent.schema.json"
39 },
40 "from": "Paragraph",
41 "isArray": true
42 }
43 },
44 "required": [
45 "type",
46 "content"
47 ],
48 "examples": [
49 {
50 "type": "Paragraph",
51 "content": [
52 "Some text content representing ideas expressed as words."
53 ]
54 },
55 {
56 "type": "Paragraph",
57 "content": [
58 "Some text with some",
59 {
60 "type": "Emphasis",
61 "content": [
62 "emphasized words"
63 ]
64 },
65 " and ",
66 {
67 "type": "Strong",
68 "content": [
69 "some strongly emphasized words"
70 ]
71 }
72 ]
73 }
74 ],
75 "file": "Paragraph.schema.yaml",
76 "children": [],
77 "descendants": [],
78 "$schema": "http://json-schema.org/draft-07/schema#",
79 "$id": "https://schema.stenci.la/v1/Paragraph.schema.json",
80 "source": "https://github.com/stencila/schema/blob/master/schema/Paragraph.schema.yaml",
81 "type": "object",
82 "additionalProperties": false,
83 "propertyAliases": {}
84}