@manuscripts/transform 4.3.53 → 4.4.1

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.
Files changed (196) hide show
  1. package/dist/cjs/jats/__tests__/jats-roundtrip.test.js +3 -3
  2. package/dist/cjs/jats/exporter/jats-exporter.js +3 -0
  3. package/dist/cjs/jats/importer/jats-dom-parser.js +41 -1
  4. package/dist/cjs/schema/index.js +9 -0
  5. package/dist/cjs/schema/nodes/headshot_element.js +38 -0
  6. package/dist/cjs/schema/nodes/headshot_grid.js +37 -0
  7. package/dist/cjs/schema/nodes/headshot_image.js +51 -0
  8. package/dist/cjs/transformer/node-names.js +2 -0
  9. package/dist/cjs/transformer/node-title.js +6 -0
  10. package/dist/cjs/version.js +1 -1
  11. package/dist/es/jats/__tests__/jats-roundtrip.test.js +3 -3
  12. package/dist/es/jats/exporter/jats-exporter.js +3 -0
  13. package/dist/es/jats/importer/jats-dom-parser.js +41 -1
  14. package/dist/es/schema/index.js +9 -0
  15. package/dist/es/schema/nodes/headshot_element.js +34 -0
  16. package/dist/es/schema/nodes/headshot_grid.js +33 -0
  17. package/dist/es/schema/nodes/headshot_image.js +48 -0
  18. package/dist/es/transformer/node-names.js +2 -0
  19. package/dist/es/transformer/node-title.js +6 -0
  20. package/dist/es/version.js +1 -1
  21. package/dist/types/jats/__tests__/utils.d.ts +1 -1
  22. package/dist/types/schema/index.d.ts +3 -0
  23. package/dist/types/schema/nodes/headshot_element.d.ts +25 -0
  24. package/dist/types/schema/nodes/headshot_grid.d.ts +24 -0
  25. package/dist/types/schema/nodes/headshot_image.d.ts +26 -0
  26. package/dist/types/schema/types.d.ts +1 -1
  27. package/dist/types/version.d.ts +1 -1
  28. package/package.json +22 -21
  29. package/src/errors.ts +28 -0
  30. package/src/getVersion.ts +21 -0
  31. package/src/index.ts +28 -0
  32. package/src/jats/__tests__/__fixtures__/debug-example.xml +136 -0
  33. package/src/jats/__tests__/__fixtures__/jats-abstract-no-body.xml +163 -0
  34. package/src/jats/__tests__/__fixtures__/jats-citations.xml +472 -0
  35. package/src/jats/__tests__/__fixtures__/jats-comments.xml +46 -0
  36. package/src/jats/__tests__/__fixtures__/jats-document.xml +134 -0
  37. package/src/jats/__tests__/__fixtures__/jats-example-doc.xml +1235 -0
  38. package/src/jats/__tests__/__fixtures__/jats-example-front-only.xml +26 -0
  39. package/src/jats/__tests__/__fixtures__/jats-example-full.xml +209 -0
  40. package/src/jats/__tests__/__fixtures__/jats-example-no-back.xml +156 -0
  41. package/src/jats/__tests__/__fixtures__/jats-example-no-body.xml +91 -0
  42. package/src/jats/__tests__/__fixtures__/jats-example.xml +221 -0
  43. package/src/jats/__tests__/__fixtures__/jats-fn-group.xml +60 -0
  44. package/src/jats/__tests__/__fixtures__/jats-import-no-refs.xml +1077 -0
  45. package/src/jats/__tests__/__fixtures__/jats-import.xml +1578 -0
  46. package/src/jats/__tests__/__fixtures__/jats-roundtrip.xml +133 -0
  47. package/src/jats/__tests__/__fixtures__/jats-tables-example.xml +2043 -0
  48. package/src/jats/__tests__/__fixtures__/math-fragment.xml +12 -0
  49. package/src/jats/__tests__/__snapshots__/citeproc.test.ts.snap +57 -0
  50. package/src/jats/__tests__/__snapshots__/create-article-node.test.ts.snap +65 -0
  51. package/src/jats/__tests__/__snapshots__/jats-exporter.test.ts.snap +7 -0
  52. package/src/jats/__tests__/__snapshots__/jats-importer.test.ts.snap +59796 -0
  53. package/src/jats/__tests__/__snapshots__/jats-roundtrip.test.ts.snap +18 -0
  54. package/src/jats/__tests__/citations.ts +25 -0
  55. package/src/jats/__tests__/citeproc.test.ts +195 -0
  56. package/src/jats/__tests__/create-article-node.test.ts +29 -0
  57. package/src/jats/__tests__/data/section-categories.ts +212 -0
  58. package/src/jats/__tests__/files.ts +24 -0
  59. package/src/jats/__tests__/jats-exporter.test.ts +223 -0
  60. package/src/jats/__tests__/jats-importer.test.ts +567 -0
  61. package/src/jats/__tests__/jats-roundtrip.test.ts +66 -0
  62. package/src/jats/__tests__/utils.ts +90 -0
  63. package/src/jats/exporter/citeproc.ts +265 -0
  64. package/src/jats/exporter/jats-exporter.ts +2093 -0
  65. package/src/jats/exporter/jats-versions.ts +50 -0
  66. package/src/jats/exporter/labels.ts +101 -0
  67. package/src/jats/importer/create-article-node.ts +52 -0
  68. package/src/jats/importer/jats-comments.ts +111 -0
  69. package/src/jats/importer/jats-dom-parser.ts +1306 -0
  70. package/src/jats/importer/jats-parser-utils.ts +234 -0
  71. package/src/jats/importer/jats-transformations.ts +591 -0
  72. package/src/jats/importer/parse-jats-article.ts +106 -0
  73. package/src/jats/index.ts +21 -0
  74. package/src/jats/types.ts +16 -0
  75. package/src/lib/__tests__/footnotes.test.ts +36 -0
  76. package/src/lib/citeproc.ts +30 -0
  77. package/src/lib/credit-roles.ts +91 -0
  78. package/src/lib/deafults.ts +17 -0
  79. package/src/lib/footnotes.ts +85 -0
  80. package/src/lib/html.ts +56 -0
  81. package/src/lib/section-categories.ts +27 -0
  82. package/src/lib/utils.ts +145 -0
  83. package/src/lib/xml.ts +28 -0
  84. package/src/schema/__tests__/docs.ts +1911 -0
  85. package/src/schema/__tests__/groups.test.ts +61 -0
  86. package/src/schema/__tests__/migration.test.ts +23 -0
  87. package/src/schema/groups.ts +36 -0
  88. package/src/schema/index.ts +295 -0
  89. package/src/schema/marks.ts +254 -0
  90. package/src/schema/migration/migrate.ts +77 -0
  91. package/src/schema/migration/migration-script.ts +26 -0
  92. package/src/schema/migration/migration-scripts/1.2.5.ts +44 -0
  93. package/src/schema/migration/migration-scripts/2.3.22.ts +52 -0
  94. package/src/schema/migration/migration-scripts/3.0.12.ts +33 -0
  95. package/src/schema/migration/migration-scripts/3.0.21.ts +50 -0
  96. package/src/schema/migration/migration-scripts/3.0.30.ts +65 -0
  97. package/src/schema/migration/migration-scripts/3.0.31.ts +40 -0
  98. package/src/schema/migration/migration-scripts/3.0.41.ts +37 -0
  99. package/src/schema/migration/migration-scripts/3.0.55.ts +42 -0
  100. package/src/schema/migration/migration-scripts/3.0.56.ts +114 -0
  101. package/src/schema/migration/migration-scripts/4.2.13.ts +37 -0
  102. package/src/schema/migration/migration-scripts/4.2.15.ts +48 -0
  103. package/src/schema/migration/migration-scripts/4.3.23.ts +55 -0
  104. package/src/schema/migration/migration-scripts/4.3.34.ts +132 -0
  105. package/src/schema/migration/migration-scripts/4.3.35.ts +41 -0
  106. package/src/schema/migration/migration-scripts/index.ts +49 -0
  107. package/src/schema/nodes/abstracts.ts +29 -0
  108. package/src/schema/nodes/affiliation.ts +88 -0
  109. package/src/schema/nodes/affiliations.ts +30 -0
  110. package/src/schema/nodes/alt_text.ts +36 -0
  111. package/src/schema/nodes/alt_title.ts +40 -0
  112. package/src/schema/nodes/alt_titles_section.ts +58 -0
  113. package/src/schema/nodes/attachment.ts +46 -0
  114. package/src/schema/nodes/attachments.ts +45 -0
  115. package/src/schema/nodes/attribution.ts +38 -0
  116. package/src/schema/nodes/author_notes.ts +44 -0
  117. package/src/schema/nodes/award.ts +52 -0
  118. package/src/schema/nodes/awards.ts +45 -0
  119. package/src/schema/nodes/backmatter.ts +31 -0
  120. package/src/schema/nodes/bibliography_element.ts +58 -0
  121. package/src/schema/nodes/bibliography_item.ts +108 -0
  122. package/src/schema/nodes/bibliography_section.ts +60 -0
  123. package/src/schema/nodes/blockquote_element.ts +79 -0
  124. package/src/schema/nodes/body.ts +29 -0
  125. package/src/schema/nodes/box_element.ts +67 -0
  126. package/src/schema/nodes/caption.ts +67 -0
  127. package/src/schema/nodes/caption_title.ts +67 -0
  128. package/src/schema/nodes/citation.ts +70 -0
  129. package/src/schema/nodes/comment.ts +50 -0
  130. package/src/schema/nodes/comments.ts +28 -0
  131. package/src/schema/nodes/contributor.ts +87 -0
  132. package/src/schema/nodes/contributors.ts +40 -0
  133. package/src/schema/nodes/core_section.ts +27 -0
  134. package/src/schema/nodes/corresp.ts +49 -0
  135. package/src/schema/nodes/cross_reference.ts +64 -0
  136. package/src/schema/nodes/doc.ts +21 -0
  137. package/src/schema/nodes/embed.ts +55 -0
  138. package/src/schema/nodes/equation.ts +65 -0
  139. package/src/schema/nodes/equation_element.ts +61 -0
  140. package/src/schema/nodes/figure.ts +65 -0
  141. package/src/schema/nodes/figure_element.ts +73 -0
  142. package/src/schema/nodes/footnote.ts +95 -0
  143. package/src/schema/nodes/footnotes_element.ts +69 -0
  144. package/src/schema/nodes/footnotes_section.ts +61 -0
  145. package/src/schema/nodes/general_table_footnote.ts +42 -0
  146. package/src/schema/nodes/graphical_abstract_section.ts +62 -0
  147. package/src/schema/nodes/hard_break.ts +36 -0
  148. package/src/schema/nodes/headshot_element.ts +48 -0
  149. package/src/schema/nodes/headshot_grid.ts +46 -0
  150. package/src/schema/nodes/headshot_image.ts +65 -0
  151. package/src/schema/nodes/hero_image.ts +46 -0
  152. package/src/schema/nodes/highlight_marker.ts +68 -0
  153. package/src/schema/nodes/image_element.ts +49 -0
  154. package/src/schema/nodes/inline_equation.ts +68 -0
  155. package/src/schema/nodes/inline_footnote.ts +66 -0
  156. package/src/schema/nodes/keyword.ts +61 -0
  157. package/src/schema/nodes/keyword_group.ts +63 -0
  158. package/src/schema/nodes/keywords.ts +59 -0
  159. package/src/schema/nodes/keywords_element.ts +64 -0
  160. package/src/schema/nodes/link.ts +79 -0
  161. package/src/schema/nodes/list.ts +134 -0
  162. package/src/schema/nodes/listing.ts +91 -0
  163. package/src/schema/nodes/listing_element.ts +61 -0
  164. package/src/schema/nodes/long_desc.ts +36 -0
  165. package/src/schema/nodes/manuscript.ts +86 -0
  166. package/src/schema/nodes/missing_figure.ts +59 -0
  167. package/src/schema/nodes/paragraph.ts +77 -0
  168. package/src/schema/nodes/placeholder.ts +62 -0
  169. package/src/schema/nodes/placeholder_element.ts +60 -0
  170. package/src/schema/nodes/pullquote_element.ts +81 -0
  171. package/src/schema/nodes/quote_image.ts +64 -0
  172. package/src/schema/nodes/section.ts +69 -0
  173. package/src/schema/nodes/section_label.ts +39 -0
  174. package/src/schema/nodes/section_title.ts +58 -0
  175. package/src/schema/nodes/subtitle.ts +40 -0
  176. package/src/schema/nodes/subtitles.ts +51 -0
  177. package/src/schema/nodes/supplement.ts +77 -0
  178. package/src/schema/nodes/supplements.ts +60 -0
  179. package/src/schema/nodes/table.ts +144 -0
  180. package/src/schema/nodes/table_col.ts +76 -0
  181. package/src/schema/nodes/table_element.ts +67 -0
  182. package/src/schema/nodes/table_element_footer.ts +42 -0
  183. package/src/schema/nodes/text.ts +31 -0
  184. package/src/schema/nodes/title.ts +43 -0
  185. package/src/schema/nodes/trans_abstract.ts +58 -0
  186. package/src/schema/nodes/trans_graphical_abstract.ts +67 -0
  187. package/src/schema/types.ts +243 -0
  188. package/src/tests.ts +33 -0
  189. package/src/transformer/id.ts +23 -0
  190. package/src/transformer/index.ts +21 -0
  191. package/src/transformer/node-names.ts +75 -0
  192. package/src/transformer/node-title.ts +116 -0
  193. package/src/transformer/node-types.ts +39 -0
  194. package/src/transformer/node-validator.ts +82 -0
  195. package/src/types.ts +25 -0
  196. package/src/version.ts +1 -0
@@ -0,0 +1,1911 @@
1
+ /*!
2
+ * © 2026 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { JSONProsemirrorNode } from '../../types'
17
+
18
+ export const v2_3_20 = {
19
+ type: 'manuscript',
20
+ attrs: {
21
+ id: 'MPManuscript:8EB79C14-9F61-483A-902F-A0B8EF5973C9',
22
+ doi: '',
23
+ },
24
+ content: [
25
+ {
26
+ type: 'title',
27
+ attrs: {
28
+ id: 'MPTitles:8EB79C14-9F61-483A-902F-A0B8EF5973C1',
29
+ placeholder: 'Insert title here...',
30
+ dataTracked: null,
31
+ },
32
+ content: [
33
+ {
34
+ type: 'text',
35
+ text: 'main title',
36
+ },
37
+ ],
38
+ },
39
+ {
40
+ type: 'contributors',
41
+ attrs: {
42
+ id: '',
43
+ },
44
+ content: [
45
+ {
46
+ type: 'contributor',
47
+ attrs: {
48
+ id: 'MPContributor:585DB23A-8778-4AFF-986F-CFF7B733CDE6',
49
+ role: 'author',
50
+ email: 'user@example.com',
51
+ affiliations: [
52
+ 'MPAffiliation:DED56C09-42E2-4AB4-BA15-9260389E2B08',
53
+ ],
54
+ bibliographicName: {
55
+ given: 'Example',
56
+ _id: 'MPBibliographicName:24C5AC82-0130-4C94-A6D7-E8A2699EAAC8',
57
+ objectType: 'MPBibliographicName',
58
+ family: 'Author',
59
+ },
60
+ userID: '',
61
+ invitationID: '',
62
+ isJointContributor: true,
63
+ ORCIDIdentifier: '',
64
+ dataTracked: null,
65
+ contents: '',
66
+ },
67
+ content: [
68
+ {
69
+ type: 'text',
70
+ text: '_',
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ type: 'contributor',
76
+ attrs: {
77
+ id: 'MPContributor:8AD5903E-0C9C-4F46-87AE-124142CE12C2',
78
+ role: 'author',
79
+ email: 'author@example.com',
80
+ affiliations: [],
81
+ bibliographicName: {
82
+ given: 'Corresponding',
83
+ _id: 'MPBibliographicName:E5B649B2-1B97-46FF-AA36-ADDC3B532517',
84
+ objectType: 'MPBibliographicName',
85
+ family: 'Author',
86
+ },
87
+ userID: '',
88
+ invitationID: '',
89
+ isCorresponding: 1,
90
+ ORCIDIdentifier: '',
91
+ dataTracked: null,
92
+ contents: '',
93
+ },
94
+ content: [
95
+ {
96
+ type: 'text',
97
+ text: '_',
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ {
104
+ type: 'affiliations',
105
+ attrs: {
106
+ id: '',
107
+ },
108
+ content: [
109
+ {
110
+ type: 'affiliation',
111
+ attrs: {
112
+ id: 'MPAffiliation:DED56C09-42E2-4AB4-BA15-9260389E2B08',
113
+ institution: 'University of Examples',
114
+ department: 'Dept of Examples',
115
+ addressLine1: '',
116
+ addressLine2: '',
117
+ addressLine3: '',
118
+ postCode: '',
119
+ country: 'United Kingdom',
120
+ county: '',
121
+ city: '',
122
+ priority: 1,
123
+ email: {
124
+ href: 'mailto:',
125
+ text: 'mail',
126
+ },
127
+ dataTracked: null,
128
+ },
129
+ content: [
130
+ {
131
+ type: 'text',
132
+ text: '_',
133
+ },
134
+ ],
135
+ },
136
+ ],
137
+ },
138
+ {
139
+ type: 'abstracts',
140
+ attrs: {
141
+ id: '',
142
+ },
143
+ },
144
+ {
145
+ type: 'body',
146
+ attrs: {
147
+ id: '',
148
+ },
149
+ content: [
150
+ {
151
+ type: 'toc_section',
152
+ attrs: {
153
+ id: 'MPSection:DFCBE345-A12D-451E-8320-723F25D2F472',
154
+ dataTracked: null,
155
+ },
156
+ content: [
157
+ {
158
+ type: 'section_title',
159
+ attrs: {
160
+ dataTracked: null,
161
+ },
162
+ content: [
163
+ {
164
+ type: 'text',
165
+ text: 'Table of Contents',
166
+ },
167
+ ],
168
+ },
169
+ {
170
+ type: 'toc_element',
171
+ attrs: {
172
+ id: 'MPTOCElement:657C54DB-78B5-4206-E322-170F68263A01',
173
+ contents:
174
+ '<div id="MPTOCElement:657C54DB-78B5-4206-E322-170F68263A01" class="manuscript-toc" contenteditable="false">\n \n \n \n \n \n\n\t\n \n \n \n <ul class="manuscript-toc-list">\n \n\t\n\t \n <li class="manuscript-toc-list-item" data-referenced-section="MPSection:DFCBE345-A12D-451E-8320-723F25D2F472" data-referenced-section-path-length="1">\n 1. Table of Contents\n </li>\n\n \n\n \n \n \n\n \n \n \n \n \n\n\t\n\t \n <li class="manuscript-toc-list-item" data-referenced-section="MPSection:77786D47-6060-4FBC-BC13-5FA754968D6A" data-referenced-section-path-length="1">\n 2. First section\n </li>\n\n \n\n \n \n \n\n \n \n \n \n \n\n\t\n\t \n <li class="manuscript-toc-list-item" data-referenced-section="MPSection:F8EE617B-484B-4CF2-F1CA-014F5307D5CF" data-referenced-section-path-length="1">\n 3. Section Two\n </li>\n\n \n\n \n \n \n\n \n \n \n \n \n\n\t\n\t \n <li class="manuscript-toc-list-item" data-referenced-section="MPSection:E07B0D52-9642-4D58-E577-26F8804E3DEE" data-referenced-section-path-length="1">\n 4. Bibliography\n </li>\n\n \n\n \n \n \n </ul>\n \n\n \n</div>',
175
+ paragraphStyle:
176
+ 'MPParagraphStyle:74D17A3A-33C0-43EB-9389-51335C698744',
177
+ dataTracked: null,
178
+ },
179
+ },
180
+ ],
181
+ },
182
+ {
183
+ type: 'section',
184
+ attrs: {
185
+ id: 'MPSection:77786D47-6060-4FBC-BC13-5FA754968D6A',
186
+ category: '',
187
+ titleSuppressed: false,
188
+ dataTracked: null,
189
+ },
190
+ content: [
191
+ {
192
+ type: 'section_title',
193
+ attrs: {
194
+ dataTracked: null,
195
+ },
196
+ content: [
197
+ {
198
+ type: 'text',
199
+ text: 'First section',
200
+ },
201
+ ],
202
+ },
203
+ {
204
+ type: 'paragraph',
205
+ attrs: {
206
+ id: 'MPParagraphElement:150780D7-CFED-4529-9398-77B5C7625044',
207
+ paragraphStyle:
208
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
209
+ placeholder:
210
+ 'Start from here. Enjoy writing! - the Manuscripts Team.',
211
+ dataTracked: null,
212
+ },
213
+ content: [
214
+ {
215
+ type: 'text',
216
+ text: 'The first section.',
217
+ },
218
+ ],
219
+ },
220
+ {
221
+ type: 'paragraph',
222
+ attrs: {
223
+ id: 'MPParagraphElement:60C13548-23C0-4348-FE98-0510E0B61B18',
224
+ paragraphStyle:
225
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
226
+ placeholder: '',
227
+ dataTracked: null,
228
+ },
229
+ content: [
230
+ {
231
+ type: 'text',
232
+ text: 'The text in this sentence is ',
233
+ },
234
+ {
235
+ type: 'text',
236
+ marks: [
237
+ {
238
+ type: 'bold',
239
+ },
240
+ ],
241
+ text: 'bold',
242
+ },
243
+ {
244
+ type: 'text',
245
+ text: ', ',
246
+ },
247
+ {
248
+ type: 'text',
249
+ marks: [
250
+ {
251
+ type: 'italic',
252
+ },
253
+ ],
254
+ text: 'italic',
255
+ },
256
+ {
257
+ type: 'text',
258
+ text: ', or ',
259
+ },
260
+ {
261
+ type: 'text',
262
+ marks: [
263
+ {
264
+ type: 'underline',
265
+ },
266
+ ],
267
+ text: 'underlined',
268
+ },
269
+ {
270
+ type: 'text',
271
+ text: '.',
272
+ },
273
+ ],
274
+ },
275
+ {
276
+ type: 'paragraph',
277
+ attrs: {
278
+ id: 'MPParagraphElement:A89DC62A-90ED-4283-AB6D-06CA2519D801',
279
+ paragraphStyle:
280
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
281
+ placeholder: '',
282
+ dataTracked: null,
283
+ },
284
+ content: [
285
+ {
286
+ type: 'text',
287
+ marks: [
288
+ {
289
+ type: 'bold',
290
+ },
291
+ {
292
+ type: 'italic',
293
+ },
294
+ {
295
+ type: 'underline',
296
+ },
297
+ ],
298
+ text: 'The text in this sentence is bold, italic and underlined.',
299
+ },
300
+ ],
301
+ },
302
+ {
303
+ type: 'paragraph',
304
+ attrs: {
305
+ id: 'MPParagraphElement:05A0ED43-8928-4C69-A17C-0A98795001CD',
306
+ paragraphStyle:
307
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
308
+ placeholder: '',
309
+ dataTracked: null,
310
+ },
311
+ content: [
312
+ {
313
+ type: 'text',
314
+ text: 'The text in this sentence is ',
315
+ },
316
+ {
317
+ type: 'text',
318
+ marks: [
319
+ {
320
+ type: 'superscript',
321
+ },
322
+ ],
323
+ text: 'superscript',
324
+ },
325
+ {
326
+ type: 'text',
327
+ text: ' and ',
328
+ },
329
+ {
330
+ type: 'text',
331
+ marks: [
332
+ {
333
+ type: 'subscript',
334
+ },
335
+ ],
336
+ text: 'subscript',
337
+ },
338
+ {
339
+ type: 'text',
340
+ text: '.',
341
+ },
342
+ ],
343
+ },
344
+ ],
345
+ },
346
+ {
347
+ type: 'section',
348
+ attrs: {
349
+ id: 'MPSection:F8EE617B-484B-4CF2-F1CA-014F5307D5CF',
350
+ category: '',
351
+ titleSuppressed: true,
352
+ dataTracked: null,
353
+ },
354
+ content: [
355
+ {
356
+ type: 'section_title',
357
+ attrs: {
358
+ dataTracked: null,
359
+ },
360
+ content: [
361
+ {
362
+ type: 'text',
363
+ text: 'Section Two',
364
+ },
365
+ ],
366
+ },
367
+ {
368
+ type: 'paragraph',
369
+ attrs: {
370
+ id: 'MPParagraphElement:4DF93A63-D44D-41CF-AF54-23712B8703FA',
371
+ paragraphStyle:
372
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
373
+ placeholder: '',
374
+ dataTracked: null,
375
+ },
376
+ content: [
377
+ {
378
+ type: 'text',
379
+ text: 'The heading of this section is hidden.',
380
+ },
381
+ ],
382
+ },
383
+ {
384
+ type: 'list',
385
+ attrs: {
386
+ id: 'MPListElement:D1C6E3B5-C549-47B8-B051-1F534E8AA7E7',
387
+ paragraphStyle:
388
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
389
+ dataTracked: null,
390
+ listStyleType: 'order',
391
+ },
392
+ content: [
393
+ {
394
+ type: 'list_item',
395
+ attrs: {
396
+ placeholder: 'List item',
397
+ dataTracked: null,
398
+ },
399
+ content: [
400
+ {
401
+ type: 'paragraph',
402
+ attrs: {
403
+ id: '',
404
+ paragraphStyle: '',
405
+ placeholder: '',
406
+ dataTracked: null,
407
+ },
408
+ content: [
409
+ {
410
+ type: 'text',
411
+ text: 'A numbered list.',
412
+ },
413
+ ],
414
+ },
415
+ ],
416
+ },
417
+ ],
418
+ },
419
+ {
420
+ type: 'list',
421
+ attrs: {
422
+ id: 'MPListElement:F11B9FCA-5DB5-4ED4-FEF9-10CDCB64F96E',
423
+ paragraphStyle:
424
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
425
+ dataTracked: null,
426
+ listStyleType: 'bullet',
427
+ },
428
+ content: [
429
+ {
430
+ type: 'list_item',
431
+ attrs: {
432
+ placeholder: 'List item',
433
+ dataTracked: null,
434
+ },
435
+ content: [
436
+ {
437
+ type: 'paragraph',
438
+ attrs: {
439
+ id: '',
440
+ paragraphStyle: '',
441
+ placeholder: '',
442
+ dataTracked: null,
443
+ },
444
+ content: [
445
+ {
446
+ type: 'text',
447
+ text: 'A bullet list.',
448
+ },
449
+ ],
450
+ },
451
+ ],
452
+ },
453
+ ],
454
+ },
455
+ {
456
+ type: 'list',
457
+ attrs: {
458
+ id: 'MPListElement:AF5341C4-5E24-40BF-B853-F966726431EB',
459
+ paragraphStyle:
460
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
461
+ dataTracked: null,
462
+ listStyleType: 'order',
463
+ },
464
+ content: [
465
+ {
466
+ type: 'list_item',
467
+ attrs: {
468
+ placeholder: 'List item',
469
+ dataTracked: null,
470
+ },
471
+ content: [
472
+ {
473
+ type: 'paragraph',
474
+ attrs: {
475
+ id: '',
476
+ paragraphStyle: '',
477
+ placeholder: '',
478
+ dataTracked: null,
479
+ },
480
+ content: [
481
+ {
482
+ type: 'text',
483
+ text: 'A numbered list with a nested list.',
484
+ },
485
+ ],
486
+ },
487
+ {
488
+ type: 'list',
489
+ attrs: {
490
+ id: null,
491
+ paragraphStyle: '',
492
+ dataTracked: null,
493
+ listStyleType: 'order',
494
+ },
495
+ content: [
496
+ {
497
+ type: 'list_item',
498
+ attrs: {
499
+ placeholder: 'List item',
500
+ dataTracked: null,
501
+ },
502
+ content: [
503
+ {
504
+ type: 'paragraph',
505
+ attrs: {
506
+ id: '',
507
+ paragraphStyle: '',
508
+ placeholder: '',
509
+ dataTracked: null,
510
+ },
511
+ content: [
512
+ {
513
+ type: 'text',
514
+ text: 'This item is nested.',
515
+ },
516
+ ],
517
+ },
518
+ ],
519
+ },
520
+ ],
521
+ },
522
+ ],
523
+ },
524
+ ],
525
+ },
526
+ {
527
+ type: 'figure_element',
528
+ attrs: {
529
+ figureLayout: '',
530
+ figureStyle:
531
+ 'MPFigureStyle:12916784-C8A2-414E-919D-490172E82B25',
532
+ id: 'MPFigureElement:A5D68C57-B5BB-4D10-E0C3-ECED717A2AA7',
533
+ label: '',
534
+ sizeFraction: 0,
535
+ suppressCaption: false,
536
+ suppressTitle: true,
537
+ dataTracked: null,
538
+ },
539
+ content: [
540
+ {
541
+ type: 'figure',
542
+ attrs: {
543
+ id: 'MPFigure:D673DF08-D75E-4061-8EC1-9611EAB302F0',
544
+ src: 'attachment:figure1',
545
+ contentType: 'image/png',
546
+ dataTracked: null,
547
+ },
548
+ },
549
+ {
550
+ type: 'figcaption',
551
+ attrs: {
552
+ dataTracked: null,
553
+ },
554
+ content: [
555
+ {
556
+ type: 'caption_title',
557
+ attrs: {
558
+ placeholder: 'Title...',
559
+ dataTracked: null,
560
+ },
561
+ },
562
+ {
563
+ type: 'caption',
564
+ attrs: {
565
+ placeholder: 'Caption...',
566
+ dataTracked: null,
567
+ },
568
+ content: [
569
+ {
570
+ type: 'text',
571
+ text: 'A figure with a caption',
572
+ },
573
+ ],
574
+ },
575
+ ],
576
+ },
577
+ {
578
+ type: 'listing',
579
+ attrs: {
580
+ id: '',
581
+ contents: '',
582
+ language: '',
583
+ languageKey: 'null',
584
+ isExpanded: false,
585
+ isExecuting: false,
586
+ dataTracked: null,
587
+ },
588
+ },
589
+ ],
590
+ },
591
+ {
592
+ type: 'figure_element',
593
+ attrs: {
594
+ figureLayout: '',
595
+ figureStyle:
596
+ 'MPFigureStyle:12916784-C8A2-414E-919D-490172E82B25',
597
+ id: 'MPFigureElement:B32BDEC8-E816-4946-C0BB-0404AF2F0C29',
598
+ label: '',
599
+ sizeFraction: 0,
600
+ suppressCaption: true,
601
+ suppressTitle: true,
602
+ dataTracked: null,
603
+ },
604
+ content: [
605
+ {
606
+ type: 'figure',
607
+ attrs: {
608
+ id: 'MPFigure:AD65D628-A904-4DC4-A026-F8F4C08F6557',
609
+ src: 'chemoji/chemoji7.png',
610
+ contentType: 'image/png',
611
+ dataTracked: null,
612
+ },
613
+ },
614
+ {
615
+ type: 'figcaption',
616
+ attrs: {
617
+ dataTracked: null,
618
+ },
619
+ content: [
620
+ {
621
+ type: 'caption_title',
622
+ attrs: {
623
+ placeholder: 'Title...',
624
+ dataTracked: null,
625
+ },
626
+ },
627
+ {
628
+ type: 'caption',
629
+ attrs: {
630
+ placeholder: 'Caption...',
631
+ dataTracked: null,
632
+ },
633
+ content: [
634
+ {
635
+ type: 'text',
636
+ text: 'A figure with hidden caption',
637
+ },
638
+ ],
639
+ },
640
+ ],
641
+ },
642
+ {
643
+ type: 'listing',
644
+ attrs: {
645
+ id: '',
646
+ contents: '',
647
+ language: '',
648
+ languageKey: 'null',
649
+ isExpanded: false,
650
+ isExecuting: false,
651
+ dataTracked: null,
652
+ },
653
+ },
654
+ ],
655
+ },
656
+ {
657
+ type: 'figure_element',
658
+ attrs: {
659
+ id: 'MPFigureElement:ca6dac1a-b6ae-4227-be6e-75119186224b',
660
+ label: '',
661
+ sizeFraction: 0,
662
+ suppressCaption: true,
663
+ suppressTitle: true,
664
+ dataTracked: null,
665
+ },
666
+ content: [
667
+ {
668
+ type: 'figure',
669
+ attrs: {
670
+ id: 'MPFigure:d377ead2-6849-4597-9caa-f3e6b73bb629',
671
+ src: 'chemoji/chemoji8.png',
672
+ contentType: 'image/png',
673
+ dataTracked: null,
674
+ },
675
+ },
676
+ {
677
+ type: 'figcaption',
678
+ attrs: {
679
+ dataTracked: null,
680
+ },
681
+ },
682
+ {
683
+ type: 'listing',
684
+ attrs: {
685
+ id: '',
686
+ contents: '',
687
+ language: '',
688
+ languageKey: 'null',
689
+ isExpanded: false,
690
+ isExecuting: false,
691
+ dataTracked: null,
692
+ },
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ type: 'table_element',
698
+ attrs: {
699
+ id: 'MPTableElement:82BD8BAF-D136-4536-AD9C-92C30B9D7315',
700
+ paragraphStyle:
701
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
702
+ tableStyle: 'MPTableStyle:08C0E93B-848D-491F-8EB2-A8A0B17714BA',
703
+ label: '',
704
+ suppressCaption: false,
705
+ suppressTitle: true,
706
+ suppressFooter: false,
707
+ suppressHeader: false,
708
+ expandListing: false,
709
+ dataTracked: null,
710
+ },
711
+ content: [
712
+ {
713
+ type: 'table',
714
+ attrs: {
715
+ id: 'MPTable:509A944E-994C-4867-AE55-593628C5DBD5',
716
+ dataTracked: null,
717
+ },
718
+ content: [
719
+ {
720
+ type: 'table_row',
721
+ attrs: {
722
+ dataTracked: null,
723
+ },
724
+ content: [
725
+ {
726
+ type: 'table_header',
727
+ attrs: {
728
+ colspan: 1,
729
+ rowspan: 1,
730
+ colwidth: null,
731
+ placeholder: 'Header 1',
732
+ valign: null,
733
+ align: null,
734
+ scope: null,
735
+ style: null,
736
+ dataTracked: null,
737
+ },
738
+ content: [
739
+ {
740
+ type: 'text',
741
+ text: 'Table Header',
742
+ },
743
+ ],
744
+ },
745
+ {
746
+ type: 'table_header',
747
+ attrs: {
748
+ colspan: 1,
749
+ rowspan: 1,
750
+ colwidth: null,
751
+ placeholder: 'Header 2',
752
+ valign: null,
753
+ align: null,
754
+ scope: null,
755
+ style: null,
756
+ dataTracked: null,
757
+ },
758
+ content: [
759
+ {
760
+ type: 'text',
761
+ text: 'Table Header',
762
+ },
763
+ ],
764
+ },
765
+ ],
766
+ },
767
+ {
768
+ type: 'table_row',
769
+ attrs: {
770
+ dataTracked: null,
771
+ },
772
+ content: [
773
+ {
774
+ type: 'table_cell',
775
+ attrs: {
776
+ colspan: 1,
777
+ rowspan: 1,
778
+ colwidth: null,
779
+ placeholder: 'Data',
780
+ valign: null,
781
+ align: null,
782
+ scope: null,
783
+ style: null,
784
+ dataTracked: null,
785
+ },
786
+ content: [
787
+ {
788
+ type: 'text',
789
+ text: 'Table Data',
790
+ },
791
+ ],
792
+ },
793
+ {
794
+ type: 'table_cell',
795
+ attrs: {
796
+ colspan: 1,
797
+ rowspan: 1,
798
+ colwidth: null,
799
+ placeholder: 'Data',
800
+ valign: null,
801
+ align: null,
802
+ scope: null,
803
+ style: null,
804
+ dataTracked: null,
805
+ },
806
+ content: [
807
+ {
808
+ type: 'text',
809
+ text: 'Table Data',
810
+ },
811
+ ],
812
+ },
813
+ ],
814
+ },
815
+ {
816
+ type: 'table_row',
817
+ attrs: {
818
+ dataTracked: null,
819
+ },
820
+ content: [
821
+ {
822
+ type: 'table_cell',
823
+ attrs: {
824
+ colspan: 1,
825
+ rowspan: 1,
826
+ colwidth: null,
827
+ placeholder: 'Data',
828
+ valign: null,
829
+ align: null,
830
+ scope: null,
831
+ style: null,
832
+ dataTracked: null,
833
+ },
834
+ content: [
835
+ {
836
+ type: 'text',
837
+ text: 'Table Data',
838
+ },
839
+ ],
840
+ },
841
+ {
842
+ type: 'table_cell',
843
+ attrs: {
844
+ colspan: 1,
845
+ rowspan: 1,
846
+ colwidth: null,
847
+ placeholder: 'Data',
848
+ valign: null,
849
+ align: null,
850
+ scope: null,
851
+ style: null,
852
+ dataTracked: null,
853
+ },
854
+ content: [
855
+ {
856
+ type: 'text',
857
+ text: 'Table Data',
858
+ },
859
+ ],
860
+ },
861
+ ],
862
+ },
863
+ {
864
+ type: 'table_row',
865
+ attrs: {
866
+ dataTracked: null,
867
+ },
868
+ content: [
869
+ {
870
+ type: 'table_cell',
871
+ attrs: {
872
+ colspan: 1,
873
+ rowspan: 1,
874
+ colwidth: null,
875
+ placeholder: 'Footer 1',
876
+ valign: null,
877
+ align: null,
878
+ scope: null,
879
+ style: null,
880
+ dataTracked: null,
881
+ },
882
+ content: [
883
+ {
884
+ type: 'text',
885
+ text: 'Table Footer',
886
+ },
887
+ ],
888
+ },
889
+ {
890
+ type: 'table_cell',
891
+ attrs: {
892
+ colspan: 1,
893
+ rowspan: 1,
894
+ colwidth: null,
895
+ placeholder: 'Footer 2',
896
+ valign: null,
897
+ align: null,
898
+ scope: null,
899
+ style: null,
900
+ dataTracked: null,
901
+ },
902
+ content: [
903
+ {
904
+ type: 'text',
905
+ text: 'Table Footer',
906
+ },
907
+ ],
908
+ },
909
+ ],
910
+ },
911
+ ],
912
+ },
913
+ {
914
+ type: 'figcaption',
915
+ attrs: {
916
+ dataTracked: null,
917
+ },
918
+ content: [
919
+ {
920
+ type: 'caption_title',
921
+ attrs: {
922
+ placeholder: 'Title...',
923
+ dataTracked: null,
924
+ },
925
+ },
926
+ {
927
+ type: 'caption',
928
+ attrs: {
929
+ placeholder: 'Caption...',
930
+ dataTracked: null,
931
+ },
932
+ content: [
933
+ {
934
+ type: 'text',
935
+ text: 'A table',
936
+ },
937
+ ],
938
+ },
939
+ ],
940
+ },
941
+ {
942
+ type: 'listing',
943
+ attrs: {
944
+ id: '',
945
+ contents: '',
946
+ language: '',
947
+ languageKey: 'null',
948
+ isExpanded: false,
949
+ isExecuting: false,
950
+ dataTracked: null,
951
+ },
952
+ },
953
+ ],
954
+ },
955
+ {
956
+ type: 'table_element',
957
+ attrs: {
958
+ id: 'MPTableElement:E0D445B4-18C4-43D3-97B3-1076A7BB5CF4',
959
+ paragraphStyle:
960
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
961
+ tableStyle: 'MPTableStyle:08C0E93B-848D-491F-8EB2-A8A0B17714BA',
962
+ label: '',
963
+ suppressCaption: false,
964
+ suppressTitle: true,
965
+ suppressFooter: false,
966
+ suppressHeader: true,
967
+ expandListing: false,
968
+ dataTracked: null,
969
+ },
970
+ content: [
971
+ {
972
+ type: 'table',
973
+ attrs: {
974
+ id: 'MPTable:7E83812B-A759-4D38-C1C5-F6507D2FC2A9',
975
+ dataTracked: null,
976
+ },
977
+ content: [
978
+ {
979
+ type: 'table_row',
980
+ attrs: {
981
+ dataTracked: null,
982
+ },
983
+ content: [
984
+ {
985
+ type: 'table_header',
986
+ attrs: {
987
+ colspan: 1,
988
+ rowspan: 1,
989
+ colwidth: null,
990
+ placeholder: 'Header 1',
991
+ valign: null,
992
+ align: null,
993
+ scope: null,
994
+ style: null,
995
+ dataTracked: null,
996
+ },
997
+ content: [
998
+ {
999
+ type: 'text',
1000
+ text: 'Table Header',
1001
+ },
1002
+ ],
1003
+ },
1004
+ {
1005
+ type: 'table_header',
1006
+ attrs: {
1007
+ colspan: 1,
1008
+ rowspan: 1,
1009
+ colwidth: null,
1010
+ placeholder: 'Header 2',
1011
+ valign: null,
1012
+ align: null,
1013
+ scope: null,
1014
+ style: null,
1015
+ dataTracked: null,
1016
+ },
1017
+ },
1018
+ ],
1019
+ },
1020
+ {
1021
+ type: 'table_row',
1022
+ attrs: {
1023
+ dataTracked: null,
1024
+ },
1025
+ content: [
1026
+ {
1027
+ type: 'table_cell',
1028
+ attrs: {
1029
+ colspan: 1,
1030
+ rowspan: 1,
1031
+ colwidth: null,
1032
+ placeholder: 'Data',
1033
+ valign: null,
1034
+ align: null,
1035
+ scope: null,
1036
+ style: null,
1037
+ dataTracked: null,
1038
+ },
1039
+ },
1040
+ {
1041
+ type: 'table_cell',
1042
+ attrs: {
1043
+ colspan: 1,
1044
+ rowspan: 1,
1045
+ colwidth: null,
1046
+ placeholder: 'Data',
1047
+ valign: null,
1048
+ align: null,
1049
+ scope: null,
1050
+ style: null,
1051
+ dataTracked: null,
1052
+ },
1053
+ },
1054
+ ],
1055
+ },
1056
+ {
1057
+ type: 'table_row',
1058
+ attrs: {
1059
+ dataTracked: null,
1060
+ },
1061
+ content: [
1062
+ {
1063
+ type: 'table_cell',
1064
+ attrs: {
1065
+ colspan: 1,
1066
+ rowspan: 1,
1067
+ colwidth: null,
1068
+ placeholder: 'Data',
1069
+ valign: null,
1070
+ align: null,
1071
+ scope: null,
1072
+ style: null,
1073
+ dataTracked: null,
1074
+ },
1075
+ },
1076
+ {
1077
+ type: 'table_cell',
1078
+ attrs: {
1079
+ colspan: 1,
1080
+ rowspan: 1,
1081
+ colwidth: null,
1082
+ placeholder: 'Data',
1083
+ valign: null,
1084
+ align: null,
1085
+ scope: null,
1086
+ style: null,
1087
+ dataTracked: null,
1088
+ },
1089
+ },
1090
+ ],
1091
+ },
1092
+ {
1093
+ type: 'table_row',
1094
+ attrs: {
1095
+ dataTracked: null,
1096
+ },
1097
+ content: [
1098
+ {
1099
+ type: 'table_cell',
1100
+ attrs: {
1101
+ colspan: 1,
1102
+ rowspan: 1,
1103
+ colwidth: null,
1104
+ placeholder: 'Footer 1',
1105
+ valign: null,
1106
+ align: null,
1107
+ scope: null,
1108
+ style: null,
1109
+ dataTracked: null,
1110
+ },
1111
+ },
1112
+ {
1113
+ type: 'table_cell',
1114
+ attrs: {
1115
+ colspan: 1,
1116
+ rowspan: 1,
1117
+ colwidth: null,
1118
+ placeholder: 'Footer 2',
1119
+ valign: null,
1120
+ align: null,
1121
+ scope: null,
1122
+ style: null,
1123
+ dataTracked: null,
1124
+ },
1125
+ },
1126
+ ],
1127
+ },
1128
+ ],
1129
+ },
1130
+ {
1131
+ type: 'figcaption',
1132
+ attrs: {
1133
+ dataTracked: null,
1134
+ },
1135
+ content: [
1136
+ {
1137
+ type: 'caption_title',
1138
+ attrs: {
1139
+ placeholder: 'Title...',
1140
+ dataTracked: null,
1141
+ },
1142
+ },
1143
+ {
1144
+ type: 'caption',
1145
+ attrs: {
1146
+ placeholder: 'Caption...',
1147
+ dataTracked: null,
1148
+ },
1149
+ content: [
1150
+ {
1151
+ type: 'text',
1152
+ text: 'A table with hidden header',
1153
+ },
1154
+ ],
1155
+ },
1156
+ ],
1157
+ },
1158
+ {
1159
+ type: 'listing',
1160
+ attrs: {
1161
+ id: '',
1162
+ contents: '',
1163
+ language: '',
1164
+ languageKey: 'null',
1165
+ isExpanded: false,
1166
+ isExecuting: false,
1167
+ dataTracked: null,
1168
+ },
1169
+ },
1170
+ ],
1171
+ },
1172
+ {
1173
+ type: 'table_element',
1174
+ attrs: {
1175
+ id: 'MPTableElement:1DF69096-DBA3-47B0-B8C2-E06491E4C655',
1176
+ paragraphStyle:
1177
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1178
+ tableStyle: 'MPTableStyle:08C0E93B-848D-491F-8EB2-A8A0B17714BA',
1179
+ label: '',
1180
+ suppressCaption: false,
1181
+ suppressTitle: true,
1182
+ suppressFooter: true,
1183
+ suppressHeader: false,
1184
+ expandListing: false,
1185
+ dataTracked: null,
1186
+ },
1187
+ content: [
1188
+ {
1189
+ type: 'table',
1190
+ attrs: {
1191
+ id: 'MPTable:2A2413E2-71F5-4B6C-F513-7B44748E49A8',
1192
+ dataTracked: null,
1193
+ },
1194
+ content: [
1195
+ {
1196
+ type: 'table_row',
1197
+ attrs: {
1198
+ dataTracked: null,
1199
+ },
1200
+ content: [
1201
+ {
1202
+ type: 'table_header',
1203
+ attrs: {
1204
+ colspan: 1,
1205
+ rowspan: 1,
1206
+ colwidth: null,
1207
+ placeholder: 'Header 1',
1208
+ valign: null,
1209
+ align: null,
1210
+ scope: null,
1211
+ style: null,
1212
+ dataTracked: null,
1213
+ },
1214
+ },
1215
+ {
1216
+ type: 'table_header',
1217
+ attrs: {
1218
+ colspan: 1,
1219
+ rowspan: 1,
1220
+ colwidth: null,
1221
+ placeholder: 'Header 2',
1222
+ valign: null,
1223
+ align: null,
1224
+ scope: null,
1225
+ style: null,
1226
+ dataTracked: null,
1227
+ },
1228
+ },
1229
+ ],
1230
+ },
1231
+ {
1232
+ type: 'table_row',
1233
+ attrs: {
1234
+ dataTracked: null,
1235
+ },
1236
+ content: [
1237
+ {
1238
+ type: 'table_cell',
1239
+ attrs: {
1240
+ colspan: 1,
1241
+ rowspan: 1,
1242
+ colwidth: null,
1243
+ placeholder: 'Data',
1244
+ valign: null,
1245
+ align: null,
1246
+ scope: null,
1247
+ style: null,
1248
+ dataTracked: null,
1249
+ },
1250
+ },
1251
+ {
1252
+ type: 'table_cell',
1253
+ attrs: {
1254
+ colspan: 1,
1255
+ rowspan: 1,
1256
+ colwidth: null,
1257
+ placeholder: 'Data',
1258
+ valign: null,
1259
+ align: null,
1260
+ scope: null,
1261
+ style: null,
1262
+ dataTracked: null,
1263
+ },
1264
+ },
1265
+ ],
1266
+ },
1267
+ {
1268
+ type: 'table_row',
1269
+ attrs: {
1270
+ dataTracked: null,
1271
+ },
1272
+ content: [
1273
+ {
1274
+ type: 'table_cell',
1275
+ attrs: {
1276
+ colspan: 1,
1277
+ rowspan: 1,
1278
+ colwidth: null,
1279
+ placeholder: 'Data',
1280
+ valign: null,
1281
+ align: null,
1282
+ scope: null,
1283
+ style: null,
1284
+ dataTracked: null,
1285
+ },
1286
+ },
1287
+ {
1288
+ type: 'table_cell',
1289
+ attrs: {
1290
+ colspan: 1,
1291
+ rowspan: 1,
1292
+ colwidth: null,
1293
+ placeholder: 'Data',
1294
+ valign: null,
1295
+ align: null,
1296
+ scope: null,
1297
+ style: null,
1298
+ dataTracked: null,
1299
+ },
1300
+ },
1301
+ ],
1302
+ },
1303
+ {
1304
+ type: 'table_row',
1305
+ attrs: {
1306
+ dataTracked: null,
1307
+ },
1308
+ content: [
1309
+ {
1310
+ type: 'table_cell',
1311
+ attrs: {
1312
+ colspan: 1,
1313
+ rowspan: 1,
1314
+ colwidth: null,
1315
+ placeholder: 'Footer 1',
1316
+ valign: null,
1317
+ align: null,
1318
+ scope: null,
1319
+ style: null,
1320
+ dataTracked: null,
1321
+ },
1322
+ },
1323
+ {
1324
+ type: 'table_cell',
1325
+ attrs: {
1326
+ colspan: 1,
1327
+ rowspan: 1,
1328
+ colwidth: null,
1329
+ placeholder: 'Footer 2',
1330
+ valign: null,
1331
+ align: null,
1332
+ scope: null,
1333
+ style: null,
1334
+ dataTracked: null,
1335
+ },
1336
+ },
1337
+ ],
1338
+ },
1339
+ ],
1340
+ },
1341
+ {
1342
+ type: 'figcaption',
1343
+ attrs: {
1344
+ dataTracked: null,
1345
+ },
1346
+ content: [
1347
+ {
1348
+ type: 'caption_title',
1349
+ attrs: {
1350
+ placeholder: 'Title...',
1351
+ dataTracked: null,
1352
+ },
1353
+ },
1354
+ {
1355
+ type: 'caption',
1356
+ attrs: {
1357
+ placeholder: 'Caption...',
1358
+ dataTracked: null,
1359
+ },
1360
+ content: [
1361
+ {
1362
+ type: 'text',
1363
+ text: 'A table with hidden footer',
1364
+ },
1365
+ ],
1366
+ },
1367
+ ],
1368
+ },
1369
+ {
1370
+ type: 'listing',
1371
+ attrs: {
1372
+ id: '',
1373
+ contents: '',
1374
+ language: '',
1375
+ languageKey: 'null',
1376
+ isExpanded: false,
1377
+ isExecuting: false,
1378
+ dataTracked: null,
1379
+ },
1380
+ },
1381
+ ],
1382
+ },
1383
+ {
1384
+ type: 'table_element',
1385
+ attrs: {
1386
+ id: 'MPTableElement:89CF51B2-A20C-4AB9-CBD9-F47DAF167DAA',
1387
+ paragraphStyle:
1388
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1389
+ tableStyle: 'MPTableStyle:08C0E93B-848D-491F-8EB2-A8A0B17714BA',
1390
+ label: '',
1391
+ suppressCaption: false,
1392
+ suppressTitle: true,
1393
+ suppressFooter: false,
1394
+ suppressHeader: false,
1395
+ expandListing: false,
1396
+ dataTracked: null,
1397
+ },
1398
+ content: [
1399
+ {
1400
+ type: 'table',
1401
+ attrs: {
1402
+ id: 'MPTable:6C045963-404A-4E1E-FF81-B40E9772A6A6',
1403
+ dataTracked: null,
1404
+ },
1405
+ content: [
1406
+ {
1407
+ type: 'table_row',
1408
+ attrs: {
1409
+ dataTracked: null,
1410
+ },
1411
+ content: [
1412
+ {
1413
+ type: 'table_header',
1414
+ attrs: {
1415
+ colspan: 1,
1416
+ rowspan: 1,
1417
+ colwidth: null,
1418
+ placeholder: 'Header 1',
1419
+ valign: null,
1420
+ align: null,
1421
+ scope: null,
1422
+ style: null,
1423
+ dataTracked: null,
1424
+ },
1425
+ },
1426
+ {
1427
+ type: 'table_header',
1428
+ attrs: {
1429
+ colspan: 1,
1430
+ rowspan: 1,
1431
+ colwidth: null,
1432
+ placeholder: 'Header 2',
1433
+ valign: null,
1434
+ align: null,
1435
+ scope: null,
1436
+ style: null,
1437
+ dataTracked: null,
1438
+ },
1439
+ },
1440
+ ],
1441
+ },
1442
+ {
1443
+ type: 'table_row',
1444
+ attrs: {
1445
+ dataTracked: null,
1446
+ },
1447
+ content: [
1448
+ {
1449
+ type: 'table_cell',
1450
+ attrs: {
1451
+ colspan: 1,
1452
+ rowspan: 1,
1453
+ colwidth: null,
1454
+ placeholder: 'Data',
1455
+ valign: null,
1456
+ align: null,
1457
+ scope: null,
1458
+ style: null,
1459
+ dataTracked: null,
1460
+ },
1461
+ },
1462
+ {
1463
+ type: 'table_cell',
1464
+ attrs: {
1465
+ colspan: 1,
1466
+ rowspan: 1,
1467
+ colwidth: null,
1468
+ placeholder: 'Data',
1469
+ valign: null,
1470
+ align: null,
1471
+ scope: null,
1472
+ style: null,
1473
+ dataTracked: null,
1474
+ },
1475
+ },
1476
+ ],
1477
+ },
1478
+ {
1479
+ type: 'table_row',
1480
+ attrs: {
1481
+ dataTracked: null,
1482
+ },
1483
+ content: [
1484
+ {
1485
+ type: 'table_cell',
1486
+ attrs: {
1487
+ colspan: 1,
1488
+ rowspan: 1,
1489
+ colwidth: null,
1490
+ placeholder: 'Data',
1491
+ valign: null,
1492
+ align: null,
1493
+ scope: null,
1494
+ style: null,
1495
+ dataTracked: null,
1496
+ },
1497
+ },
1498
+ {
1499
+ type: 'table_cell',
1500
+ attrs: {
1501
+ colspan: 1,
1502
+ rowspan: 1,
1503
+ colwidth: null,
1504
+ placeholder: 'Data',
1505
+ valign: null,
1506
+ align: null,
1507
+ scope: null,
1508
+ style: null,
1509
+ dataTracked: null,
1510
+ },
1511
+ },
1512
+ ],
1513
+ },
1514
+ {
1515
+ type: 'table_row',
1516
+ attrs: {
1517
+ dataTracked: null,
1518
+ },
1519
+ content: [
1520
+ {
1521
+ type: 'table_cell',
1522
+ attrs: {
1523
+ colspan: 1,
1524
+ rowspan: 1,
1525
+ colwidth: null,
1526
+ placeholder: 'Footer 1',
1527
+ valign: null,
1528
+ align: null,
1529
+ scope: null,
1530
+ style: null,
1531
+ dataTracked: null,
1532
+ },
1533
+ },
1534
+ {
1535
+ type: 'table_cell',
1536
+ attrs: {
1537
+ colspan: 1,
1538
+ rowspan: 1,
1539
+ colwidth: null,
1540
+ placeholder: 'Footer 2',
1541
+ valign: null,
1542
+ align: null,
1543
+ scope: null,
1544
+ style: null,
1545
+ dataTracked: null,
1546
+ },
1547
+ },
1548
+ ],
1549
+ },
1550
+ ],
1551
+ },
1552
+ {
1553
+ type: 'figcaption',
1554
+ attrs: {
1555
+ dataTracked: null,
1556
+ },
1557
+ content: [
1558
+ {
1559
+ type: 'caption_title',
1560
+ attrs: {
1561
+ placeholder: 'Title...',
1562
+ dataTracked: null,
1563
+ },
1564
+ },
1565
+ {
1566
+ type: 'caption',
1567
+ attrs: {
1568
+ placeholder: 'Caption...',
1569
+ dataTracked: null,
1570
+ },
1571
+ content: [
1572
+ {
1573
+ type: 'text',
1574
+ text: 'A table with hidden caption',
1575
+ },
1576
+ ],
1577
+ },
1578
+ ],
1579
+ },
1580
+ {
1581
+ type: 'listing',
1582
+ attrs: {
1583
+ id: '',
1584
+ contents: '',
1585
+ language: '',
1586
+ languageKey: 'null',
1587
+ isExpanded: false,
1588
+ isExecuting: false,
1589
+ dataTracked: null,
1590
+ },
1591
+ },
1592
+ ],
1593
+ },
1594
+ {
1595
+ type: 'equation_element',
1596
+ attrs: {
1597
+ id: 'MPEquationElement:3896A81A-D43B-483F-B990-F64518A940D1',
1598
+ label: 'Equation 1',
1599
+ dataTracked: null,
1600
+ },
1601
+ content: [
1602
+ {
1603
+ type: 'equation',
1604
+ attrs: {
1605
+ id: 'MPEquation:C900DDA4-BE45-4AF6-8C9F-CA0AA5FCC403',
1606
+ contents:
1607
+ '<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ρ</mml:mi><mml:mi>ρ</mml:mi></mml:math>',
1608
+ format: 'mathml',
1609
+ dataTracked: null,
1610
+ },
1611
+ },
1612
+ ],
1613
+ },
1614
+ {
1615
+ type: 'listing_element',
1616
+ attrs: {
1617
+ id: 'MPListingElement:160785A9-4BC0-4C55-C4DE-AF5F4D858DCE',
1618
+ suppressCaption: false,
1619
+ suppressTitle: true,
1620
+ dataTracked: null,
1621
+ },
1622
+ content: [
1623
+ {
1624
+ type: 'listing',
1625
+ attrs: {
1626
+ id: 'MPListing:4D688DCF-29CD-40CC-93BD-2B13CD883257',
1627
+ contents: "// a JavaScript code block\n\nconst x = 'y'",
1628
+ language: 'JavaScript',
1629
+ languageKey: 'javascript',
1630
+ isExpanded: false,
1631
+ isExecuting: false,
1632
+ dataTracked: null,
1633
+ },
1634
+ },
1635
+ {
1636
+ type: 'figcaption',
1637
+ attrs: {
1638
+ dataTracked: null,
1639
+ },
1640
+ content: [
1641
+ {
1642
+ type: 'caption_title',
1643
+ attrs: {
1644
+ placeholder: 'Title...',
1645
+ dataTracked: null,
1646
+ },
1647
+ },
1648
+ {
1649
+ type: 'caption',
1650
+ attrs: {
1651
+ placeholder: 'Caption...',
1652
+ dataTracked: null,
1653
+ },
1654
+ },
1655
+ ],
1656
+ },
1657
+ ],
1658
+ },
1659
+ {
1660
+ type: 'paragraph',
1661
+ attrs: {
1662
+ id: 'MPParagraphElement:345B8B57-2E5E-45ED-E587-4EAAC2BD63E9',
1663
+ paragraphStyle:
1664
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1665
+ placeholder: '',
1666
+ dataTracked: null,
1667
+ },
1668
+ content: [
1669
+ {
1670
+ type: 'text',
1671
+ text: 'An inline equation: ',
1672
+ },
1673
+ {
1674
+ type: 'inline_equation',
1675
+ attrs: {
1676
+ dataTracked: null,
1677
+ id: 'inline-formula-1',
1678
+ contents:
1679
+ '<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ρ</mml:mi><mml:mi>ρ</mml:mi></mml:math>',
1680
+ format: 'mathml',
1681
+ },
1682
+ },
1683
+ ],
1684
+ },
1685
+ {
1686
+ type: 'paragraph',
1687
+ attrs: {
1688
+ id: 'MPParagraphElement:6B6DBF43-F7B2-404C-89DD-0EC1E1442B27',
1689
+ paragraphStyle:
1690
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1691
+ placeholder: '',
1692
+ dataTracked: null,
1693
+ },
1694
+ content: [
1695
+ {
1696
+ type: 'text',
1697
+ text: 'A cross-reference to a figure: ',
1698
+ },
1699
+ {
1700
+ type: 'cross_reference',
1701
+ attrs: {
1702
+ rids: [
1703
+ 'MPFigureElement:A5D68C57-B5BB-4D10-E0C3-ECED717A2AA7',
1704
+ ],
1705
+ label: 'Figure 1',
1706
+ customLabel: '',
1707
+ dataTracked: null,
1708
+ },
1709
+ },
1710
+ ],
1711
+ },
1712
+ {
1713
+ type: 'paragraph',
1714
+ attrs: {
1715
+ id: 'MPParagraphElement:41B99DAB-F86C-477F-D36C-2B8590B5DAD0',
1716
+ paragraphStyle:
1717
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1718
+ placeholder: '',
1719
+ dataTracked: null,
1720
+ },
1721
+ content: [
1722
+ {
1723
+ type: 'text',
1724
+ text: 'A cross-reference to a table: ',
1725
+ },
1726
+ {
1727
+ type: 'cross_reference',
1728
+ attrs: {
1729
+ rids: ['MPTable:509A944E-994C-4867-AE55-593628C5DBD5'],
1730
+ label: 'Table 1',
1731
+ customLabel: '',
1732
+ dataTracked: null,
1733
+ },
1734
+ },
1735
+ ],
1736
+ },
1737
+ {
1738
+ type: 'paragraph',
1739
+ attrs: {
1740
+ id: 'MPParagraphElement:C8A173A4-DF32-4242-E800-28A1AE5B48B8',
1741
+ paragraphStyle:
1742
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1743
+ placeholder: '',
1744
+ dataTracked: null,
1745
+ },
1746
+ content: [
1747
+ {
1748
+ type: 'text',
1749
+ text: 'A cross-reference to an equation: ',
1750
+ },
1751
+ {
1752
+ type: 'cross_reference',
1753
+ attrs: {
1754
+ rids: ['MPEquation:C900DDA4-BE45-4AF6-8C9F-CA0AA5FCC403'],
1755
+ label: 'Equation 1',
1756
+ customLabel: '',
1757
+ dataTracked: null,
1758
+ },
1759
+ },
1760
+ ],
1761
+ },
1762
+ {
1763
+ type: 'paragraph',
1764
+ attrs: {
1765
+ id: 'MPParagraphElement:CB7347E5-8502-4667-82B9-51104BB1FEDB',
1766
+ paragraphStyle:
1767
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1768
+ placeholder: '',
1769
+ dataTracked: null,
1770
+ },
1771
+ content: [
1772
+ {
1773
+ type: 'citation',
1774
+ attrs: {
1775
+ id: 'MPCitation:C1BA9478-E940-4273-CB5C-0DDCD62CFBF2',
1776
+ rids: [
1777
+ 'MPBibliographyItem:8C394C86-F7B0-48CE-D5BC-E7A10FCE7FA5',
1778
+ ],
1779
+ contents: 'A hyperlink',
1780
+ selectedText: '',
1781
+ dataTracked: null,
1782
+ },
1783
+ },
1784
+ ],
1785
+ },
1786
+ {
1787
+ type: 'paragraph',
1788
+ attrs: {
1789
+ id: 'MPParagraphElement:3708E8C7-441C-4502-8BFC-D3A2059CEF8B',
1790
+ paragraphStyle:
1791
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1792
+ placeholder: '',
1793
+ dataTracked: null,
1794
+ },
1795
+ content: [
1796
+ {
1797
+ type: 'text',
1798
+ text: 'A footnote:',
1799
+ },
1800
+ {
1801
+ type: 'inline_footnote',
1802
+ attrs: {
1803
+ rids: ['MPFootnote:B1589279-0F3B-472B-BF11-3F59D6B65791'],
1804
+ contents: '1',
1805
+ dataTracked: null,
1806
+ },
1807
+ },
1808
+ ],
1809
+ },
1810
+ {
1811
+ type: 'footnotes_element',
1812
+ attrs: {
1813
+ id: 'MPFootnotesElement:4CD7CE08-0880-46BD-FF83-52E32AEFAC3E',
1814
+ kind: 'footnote',
1815
+ paragraphStyle:
1816
+ 'MPParagraphStyle:76353811-8E1D-4D11-A1B5-C960C9EEEFCD',
1817
+ dataTracked: null,
1818
+ },
1819
+ content: [
1820
+ {
1821
+ type: 'footnote',
1822
+ attrs: {
1823
+ id: 'MPFootnote:B1589279-0F3B-472B-BF11-3F59D6B65791',
1824
+ kind: 'footnote',
1825
+ paragraphStyle: '',
1826
+ placeholder: '',
1827
+ dataTracked: null,
1828
+ },
1829
+ content: [
1830
+ {
1831
+ type: 'paragraph',
1832
+ attrs: {
1833
+ id: '',
1834
+ paragraphStyle: '',
1835
+ placeholder: '',
1836
+ dataTracked: null,
1837
+ },
1838
+ content: [
1839
+ {
1840
+ type: 'text',
1841
+ text: 'This is a footnote.',
1842
+ },
1843
+ ],
1844
+ },
1845
+ ],
1846
+ },
1847
+ ],
1848
+ },
1849
+ ],
1850
+ },
1851
+ ],
1852
+ },
1853
+ {
1854
+ type: 'backmatter',
1855
+ attrs: {
1856
+ id: '',
1857
+ placeholder: ' ',
1858
+ },
1859
+ content: [
1860
+ {
1861
+ type: 'bibliography_section',
1862
+ attrs: {
1863
+ id: 'MPSection:E07B0D52-9642-4D58-E577-26F8804E3DEE',
1864
+ dataTracked: null,
1865
+ },
1866
+ content: [
1867
+ {
1868
+ type: 'section_title',
1869
+ attrs: {
1870
+ dataTracked: null,
1871
+ },
1872
+ content: [
1873
+ {
1874
+ type: 'text',
1875
+ text: 'Bibliography',
1876
+ },
1877
+ ],
1878
+ },
1879
+ {
1880
+ type: 'bibliography_element',
1881
+ attrs: {
1882
+ id: 'MPBibliographyElement:5987B3BA-D894-4700-90D6-114E20B9F3B1',
1883
+ contents: '',
1884
+ paragraphStyle:
1885
+ 'MPParagraphStyle:7EAB5784-717B-4672-BD59-8CA324FB0637',
1886
+ dataTracked: null,
1887
+ },
1888
+ content: [
1889
+ {
1890
+ type: 'bibliography_item',
1891
+ attrs: {
1892
+ id: 'MPBibliographyItem:8C394C86-F7B0-48CE-D5BC-E7A10FCE7FA5',
1893
+ title: 'A hyperlink',
1894
+ paragraphStyle: '',
1895
+ dataTracked: null,
1896
+ },
1897
+ },
1898
+ ],
1899
+ },
1900
+ ],
1901
+ },
1902
+ ],
1903
+ },
1904
+ {
1905
+ type: 'comments',
1906
+ attrs: {
1907
+ id: '',
1908
+ },
1909
+ },
1910
+ ],
1911
+ } as JSONProsemirrorNode