@quarto/jupyterlab-quarto 0.1.44 → 0.1.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/lib/__tests__/index.spec.d.ts +6 -0
  2. package/lib/__tests__/index.spec.js +61 -0
  3. package/lib/__tests__/index.spec.js.map +1 -0
  4. package/lib/__tests__/myextension.spec.d.ts +6 -0
  5. package/lib/__tests__/myextension.spec.js +11 -0
  6. package/lib/__tests__/myextension.spec.js.map +1 -0
  7. package/lib/ast/ast.d.ts +3 -0
  8. package/lib/ast/ast.js +39 -0
  9. package/lib/ast/ast.js.map +1 -0
  10. package/lib/const.d.ts +5 -0
  11. package/lib/const.js +12 -0
  12. package/lib/const.js.map +1 -0
  13. package/lib/hooks/codemirror.d.ts +4 -0
  14. package/lib/hooks/codemirror.js +52 -0
  15. package/lib/hooks/codemirror.js.map +1 -0
  16. package/lib/index.d.ts +6 -0
  17. package/lib/index.js +60 -0
  18. package/lib/index.js.map +1 -0
  19. package/lib/manager.d.ts +8 -0
  20. package/lib/manager.js +117 -0
  21. package/lib/manager.js.map +1 -0
  22. package/lib/plugins/callouts.d.ts +3 -0
  23. package/lib/plugins/callouts.js +209 -0
  24. package/lib/plugins/callouts.js.map +1 -0
  25. package/lib/plugins/cites.d.ts +3 -0
  26. package/lib/plugins/cites.js +148 -0
  27. package/lib/plugins/cites.js.map +1 -0
  28. package/lib/plugins/decorator.d.ts +3 -0
  29. package/lib/plugins/decorator.js +59 -0
  30. package/lib/plugins/decorator.js.map +1 -0
  31. package/lib/plugins/divs.d.ts +6 -0
  32. package/lib/plugins/divs.js +100 -0
  33. package/lib/plugins/divs.js.map +1 -0
  34. package/lib/plugins/figure-divs.d.ts +3 -0
  35. package/lib/plugins/figure-divs.js +53 -0
  36. package/lib/plugins/figure-divs.js.map +1 -0
  37. package/lib/plugins/figures.d.ts +17 -0
  38. package/lib/plugins/figures.js +99 -0
  39. package/lib/plugins/figures.js.map +1 -0
  40. package/lib/plugins/gridtables/common/gridtables/GetCells.d.ts +8 -0
  41. package/lib/plugins/gridtables/common/gridtables/GetCells.js +45 -0
  42. package/lib/plugins/gridtables/common/gridtables/GetCells.js.map +1 -0
  43. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.d.ts +8 -0
  44. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js +27 -0
  45. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js.map +1 -0
  46. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.d.ts +8 -0
  47. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js +13 -0
  48. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js.map +1 -0
  49. package/lib/plugins/gridtables/common/markdown-it/EmitTable.d.ts +5 -0
  50. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js +67 -0
  51. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js.map +1 -0
  52. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.d.ts +9 -0
  53. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js +19 -0
  54. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js.map +1 -0
  55. package/lib/plugins/gridtables/common/markdown-it/GetLine.d.ts +3 -0
  56. package/lib/plugins/gridtables/common/markdown-it/GetLine.js +10 -0
  57. package/lib/plugins/gridtables/common/markdown-it/GetLine.js.map +1 -0
  58. package/lib/plugins/gridtables/common/markdown-it/ParseTable.d.ts +4 -0
  59. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js +162 -0
  60. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js.map +1 -0
  61. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.d.ts +13 -0
  62. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js +18 -0
  63. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js.map +1 -0
  64. package/lib/plugins/gridtables/index.d.ts +2 -0
  65. package/lib/plugins/gridtables/index.js +11 -0
  66. package/lib/plugins/gridtables/index.js.map +1 -0
  67. package/lib/plugins/gridtables/interfaces/markdown-it/IState.d.ts +11 -0
  68. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js +6 -0
  69. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js.map +1 -0
  70. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.d.ts +7 -0
  71. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js +6 -0
  72. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js.map +1 -0
  73. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.d.ts +4 -0
  74. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js +6 -0
  75. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js.map +1 -0
  76. package/lib/plugins/gridtables/rules/gridtable.d.ts +4 -0
  77. package/lib/plugins/gridtables/rules/gridtable.js +26 -0
  78. package/lib/plugins/gridtables/rules/gridtable.js.map +1 -0
  79. package/lib/plugins/math.d.ts +5 -0
  80. package/lib/plugins/math.js +177 -0
  81. package/lib/plugins/math.js.map +1 -0
  82. package/lib/plugins/mermaid/index.d.ts +5 -0
  83. package/lib/plugins/mermaid/index.js +55 -0
  84. package/lib/plugins/mermaid/index.js.map +1 -0
  85. package/lib/plugins/shortcodes.d.ts +4 -0
  86. package/lib/plugins/shortcodes.js +33 -0
  87. package/lib/plugins/shortcodes.js.map +1 -0
  88. package/lib/plugins/spans.d.ts +3 -0
  89. package/lib/plugins/spans.js +39 -0
  90. package/lib/plugins/spans.js.map +1 -0
  91. package/lib/plugins/table-captions.d.ts +3 -0
  92. package/lib/plugins/table-captions.js +69 -0
  93. package/lib/plugins/table-captions.js.map +1 -0
  94. package/lib/plugins/utils/html.d.ts +12 -0
  95. package/lib/plugins/utils/html.js +46 -0
  96. package/lib/plugins/utils/html.js.map +1 -0
  97. package/lib/plugins/utils/markdownit.d.ts +16 -0
  98. package/lib/plugins/utils/markdownit.js +45 -0
  99. package/lib/plugins/utils/markdownit.js.map +1 -0
  100. package/lib/plugins/utils/tok.d.ts +8 -0
  101. package/lib/plugins/utils/tok.js +14 -0
  102. package/lib/plugins/utils/tok.js.map +1 -0
  103. package/lib/plugins/yaml.d.ts +3 -0
  104. package/lib/plugins/yaml.js +320 -0
  105. package/lib/plugins/yaml.js.map +1 -0
  106. package/lib/providers/attrs.d.ts +2 -0
  107. package/lib/providers/attrs.js +16 -0
  108. package/lib/providers/attrs.js.map +1 -0
  109. package/lib/providers/callouts.d.ts +2 -0
  110. package/lib/providers/callouts.js +16 -0
  111. package/lib/providers/callouts.js.map +1 -0
  112. package/lib/providers/cites.d.ts +2 -0
  113. package/lib/providers/cites.js +16 -0
  114. package/lib/providers/cites.js.map +1 -0
  115. package/lib/providers/decorator.d.ts +2 -0
  116. package/lib/providers/decorator.js +16 -0
  117. package/lib/providers/decorator.js.map +1 -0
  118. package/lib/providers/deflist.d.ts +2 -0
  119. package/lib/providers/deflist.js +16 -0
  120. package/lib/providers/deflist.js.map +1 -0
  121. package/lib/providers/divs.d.ts +2 -0
  122. package/lib/providers/divs.js +28 -0
  123. package/lib/providers/divs.js.map +1 -0
  124. package/lib/providers/figure-divs.d.ts +2 -0
  125. package/lib/providers/figure-divs.js +16 -0
  126. package/lib/providers/figure-divs.js.map +1 -0
  127. package/lib/providers/figures.d.ts +2 -0
  128. package/lib/providers/figures.js +16 -0
  129. package/lib/providers/figures.js.map +1 -0
  130. package/lib/providers/footnotes.d.ts +2 -0
  131. package/lib/providers/footnotes.js +16 -0
  132. package/lib/providers/footnotes.js.map +1 -0
  133. package/lib/providers/gridtables.d.ts +2 -0
  134. package/lib/providers/gridtables.js +16 -0
  135. package/lib/providers/gridtables.js.map +1 -0
  136. package/lib/providers/math.d.ts +2 -0
  137. package/lib/providers/math.js +105 -0
  138. package/lib/providers/math.js.map +1 -0
  139. package/lib/providers/mermaid.d.ts +2 -0
  140. package/lib/providers/mermaid.js +16 -0
  141. package/lib/providers/mermaid.js.map +1 -0
  142. package/lib/providers/provider.d.ts +4 -0
  143. package/lib/providers/provider.js +13 -0
  144. package/lib/providers/provider.js.map +1 -0
  145. package/lib/providers/shortcodes.d.ts +2 -0
  146. package/lib/providers/shortcodes.js +16 -0
  147. package/lib/providers/shortcodes.js.map +1 -0
  148. package/lib/providers/spans.d.ts +2 -0
  149. package/lib/providers/spans.js +16 -0
  150. package/lib/providers/spans.js.map +1 -0
  151. package/lib/providers/sub.d.ts +2 -0
  152. package/lib/providers/sub.js +16 -0
  153. package/lib/providers/sub.js.map +1 -0
  154. package/lib/providers/sup.d.ts +2 -0
  155. package/lib/providers/sup.js +16 -0
  156. package/lib/providers/sup.js.map +1 -0
  157. package/lib/providers/table-captions.d.ts +2 -0
  158. package/lib/providers/table-captions.js +16 -0
  159. package/lib/providers/table-captions.js.map +1 -0
  160. package/lib/providers/tasklists.d.ts +2 -0
  161. package/lib/providers/tasklists.js +16 -0
  162. package/lib/providers/tasklists.js.map +1 -0
  163. package/lib/providers/yaml.d.ts +2 -0
  164. package/lib/providers/yaml.js +16 -0
  165. package/lib/providers/yaml.js.map +1 -0
  166. package/lib/types.d.ts +44 -0
  167. package/lib/types.js +2 -0
  168. package/lib/types.js.map +1 -0
  169. package/lib/widgets.d.ts +15 -0
  170. package/lib/widgets.js +58 -0
  171. package/lib/widgets.js.map +1 -0
  172. package/package.json +1 -1
@@ -0,0 +1,320 @@
1
+ /*
2
+ * markdownit-yaml.ts
3
+ *
4
+ * Copyright (C) 2022 by Posit Software, PBC
5
+ * Copyright (c) 2016-2020 ParkSB.
6
+ *
7
+ * Unless you have received this program directly from Posit Software pursuant
8
+ * to the terms of a commercial license agreement with Posit Software, then
9
+ * this program is licensed to you under the terms of version 3 of the
10
+ * GNU Affero General Public License. This program is distributed WITHOUT
11
+ * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
12
+ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
13
+ * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
14
+ *
15
+ */
16
+ import * as yaml from "js-yaml";
17
+ import { decorator } from "./utils/html";
18
+ // Typescript version of https://github.com/parksb/markdown-it-front-matter
19
+ // TODO: Rationalize this with quarto-core/src/markdownit-yaml.ts
20
+ // This is a copy with rendering added - the core tokenizing function is identical (or should be)
21
+ const kTokFrontMatter = 'front_matter';
22
+ export function yamlPlugin(md, cb) {
23
+ const min_markers = 3, marker_str = "-", marker_char = marker_str.charCodeAt(0), marker_len = marker_str.length;
24
+ function frontMatter(state, startLine, endLine, silent) {
25
+ let pos, nextLine, start_content, user_closed = false, start = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine];
26
+ // Check out the first character of the first line quickly,
27
+ // this should filter out non-front matter
28
+ if (startLine !== 0 || marker_char !== state.src.charCodeAt(0)) {
29
+ return false;
30
+ }
31
+ // Check out the rest of the marker string
32
+ // while pos <= 3
33
+ for (pos = start + 1; pos <= max; pos++) {
34
+ if (marker_str[(pos - start) % marker_len] !== state.src[pos]) {
35
+ start_content = pos + 1;
36
+ break;
37
+ }
38
+ }
39
+ const marker_count = Math.floor((pos - start) / marker_len);
40
+ if (marker_count < min_markers) {
41
+ return false;
42
+ }
43
+ pos -= (pos - start) % marker_len;
44
+ // Since start is found, we can report success here in validation mode
45
+ if (silent) {
46
+ return true;
47
+ }
48
+ // Search for the end of the block
49
+ nextLine = startLine;
50
+ for (;;) {
51
+ nextLine++;
52
+ if (nextLine >= endLine) {
53
+ // unclosed block should be autoclosed by end of document.
54
+ // also block seems to be autoclosed by end of parent
55
+ break;
56
+ }
57
+ if (state.src.slice(start, max) === "...") {
58
+ break;
59
+ }
60
+ start = state.bMarks[nextLine] + state.tShift[nextLine];
61
+ max = state.eMarks[nextLine];
62
+ if (start < max && state.sCount[nextLine] < state.blkIndent) {
63
+ // non-empty line with negative indent should stop the list:
64
+ // - ```
65
+ // test
66
+ break;
67
+ }
68
+ if (marker_char !== state.src.charCodeAt(start)) {
69
+ continue;
70
+ }
71
+ if (state.sCount[nextLine] - state.blkIndent >= 4) {
72
+ // closing fence should be indented less than 4 spaces
73
+ continue;
74
+ }
75
+ for (pos = start + 1; pos <= max; pos++) {
76
+ if (marker_str[(pos - start) % marker_len] !== state.src[pos]) {
77
+ break;
78
+ }
79
+ }
80
+ // closing code fence must be at least as long as the opening one
81
+ if (Math.floor((pos - start) / marker_len) < marker_count) {
82
+ continue;
83
+ }
84
+ // make sure tail has spaces only
85
+ pos -= (pos - start) % marker_len;
86
+ pos = state.skipSpaces(pos);
87
+ if (pos < max) {
88
+ continue;
89
+ }
90
+ // found!
91
+ user_closed = true;
92
+ break;
93
+ }
94
+ // Ensure that we have real yaml here
95
+ const markup = state.src.slice(startLine, pos);
96
+ const yaml = parseFrontMatterStr(markup);
97
+ const isYamlBlock = yaml !== null && typeof (yaml) === "object";
98
+ // If this is yaml, render it
99
+ if (isYamlBlock && user_closed) {
100
+ const old_parent = state.parentType;
101
+ const old_line_max = state.lineMax;
102
+ const token = state.push(kTokFrontMatter, "", 0);
103
+ token.hidden = true;
104
+ token.markup = markup;
105
+ token.block = true;
106
+ token.map = [startLine, pos];
107
+ token.meta = state.src.slice(start_content, start - 1);
108
+ if (cb) {
109
+ cb(token.meta);
110
+ }
111
+ state.parentType = old_parent;
112
+ state.lineMax = old_line_max;
113
+ state.line = nextLine + (user_closed ? 1 : 0);
114
+ return true;
115
+ }
116
+ else {
117
+ // This is not yaml, just continue
118
+ state.line = nextLine + 1;
119
+ return false;
120
+ }
121
+ }
122
+ md.block.ruler.before("table", kTokFrontMatter, frontMatter, {
123
+ alt: ["paragraph", "reference", "blockquote", "list"],
124
+ });
125
+ // Add rendering
126
+ md.renderer.rules[kTokFrontMatter] = renderFrontMatter;
127
+ }
128
+ function renderFrontMatter(tokens, idx) {
129
+ const token = tokens[idx];
130
+ // Parse the markup
131
+ const frontUnknown = parseFrontMatterStr(token.markup);
132
+ // Extract important content
133
+ if (typeof (frontUnknown) === "object") {
134
+ const titleBlock = {};
135
+ const frontMatter = frontUnknown;
136
+ const readStr = (key) => {
137
+ if (frontMatter[key] === undefined) {
138
+ return undefined;
139
+ }
140
+ else if (typeof (frontMatter[key]) === "string") {
141
+ const val = frontMatter[key];
142
+ delete frontMatter[key];
143
+ return val;
144
+ }
145
+ else {
146
+ return undefined;
147
+ }
148
+ };
149
+ // Read simple values
150
+ titleBlock.title = readStr("title");
151
+ titleBlock.subtitle = readStr("subtitle");
152
+ titleBlock.abstract = readStr("abstract");
153
+ titleBlock.date = readStr("date");
154
+ titleBlock.modified = readStr("date-modified");
155
+ titleBlock.doi = readStr("doi");
156
+ // Read Authors
157
+ titleBlock.authors = parseAuthor(frontMatter.author || frontMatter.authors);
158
+ delete frontMatter.author;
159
+ delete frontMatter.authors;
160
+ // The final rendered HTML output
161
+ const titleLines = [];
162
+ // Render the title block and other yaml options
163
+ const titleRendered = renderTitle(titleBlock);
164
+ titleLines.push(titleRendered);
165
+ if (Object.keys(frontMatter).length > 0) {
166
+ // decorator
167
+ const decor = decorator(["Options"]);
168
+ titleLines.push(decor);
169
+ // yaml
170
+ const yamlDump = yaml.dump(frontMatter);
171
+ const otherYamlRendered = `<pre class="quarto-frontmatter-container"><code class="cm-s-jupyter language-yaml quarto-frontmatter">${yamlDump}</code></pre>`;
172
+ titleLines.push(otherYamlRendered);
173
+ }
174
+ return titleLines.join("\n");
175
+ }
176
+ else {
177
+ return "";
178
+ }
179
+ }
180
+ // TODO: Use core function instead
181
+ function parseFrontMatterStr(str) {
182
+ str = str.replace(/---\s*$/, "");
183
+ try {
184
+ return yaml.load(str, { schema: yaml.FAILSAFE_SCHEMA });
185
+ }
186
+ catch (error) {
187
+ return undefined;
188
+ }
189
+ }
190
+ function renderTitle(titleBlock) {
191
+ var _a;
192
+ const rendered = [];
193
+ if (titleBlock.title) {
194
+ rendered.push(`<h1>${titleBlock.title}</h1>`);
195
+ }
196
+ if (titleBlock.subtitle) {
197
+ rendered.push(`<p class="quarto-subtitle">${titleBlock.subtitle}</p>`);
198
+ }
199
+ const metadataBlocks = [];
200
+ if (titleBlock.authors && ((_a = titleBlock.authors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
201
+ const names = [];
202
+ const affils = [];
203
+ for (let i = 0; i < titleBlock.authors.length; i++) {
204
+ const author = titleBlock.authors[i];
205
+ if (author.orcid) {
206
+ names.push({
207
+ value: `${author.name}<a href="https://orcid.org/${author.orcid}" class="quarto-orcid"><i></i></a>`,
208
+ padded: i > 0
209
+ });
210
+ }
211
+ else {
212
+ names.push({ value: author.name, padded: i > 0 });
213
+ }
214
+ // Place empty rows to allow affiliations to line up
215
+ const emptyCount = author.affil ? Math.max(author.affil.length - 1, 0) : 0;
216
+ for (let j = 0; j < emptyCount; j++) {
217
+ names.push({ value: "&nbsp;" });
218
+ }
219
+ // Collect affilations
220
+ if (author.affil) {
221
+ for (let k = 0; k < author.affil.length; k++) {
222
+ const affil = author.affil[k];
223
+ affils.push({
224
+ value: affil,
225
+ padded: i > 0 && k == 0
226
+ });
227
+ }
228
+ }
229
+ }
230
+ const authLabel = names.length === 1 ? "Author" : "Authors";
231
+ metadataBlocks.push(renderDocMeta(authLabel, names));
232
+ if (affils.length > 0) {
233
+ const affilLabel = affils.length === 1 ? "Affiliation" : "Affiliations";
234
+ metadataBlocks.push(renderDocMeta(affilLabel, affils));
235
+ }
236
+ }
237
+ if (titleBlock.date) {
238
+ metadataBlocks.push(renderDocMeta("Date", [{ value: titleBlock.date }]));
239
+ }
240
+ if (titleBlock.modified) {
241
+ metadataBlocks.push(renderDocMeta("Modified", [{ value: titleBlock.modified }]));
242
+ }
243
+ if (titleBlock.doi) {
244
+ metadataBlocks.push(renderDocMeta("DOI", [{ value: `<a href="https://doi.org/${titleBlock.doi}">${titleBlock.doi}</a>` }]));
245
+ }
246
+ if (metadataBlocks.length > 0) {
247
+ rendered.push(renderDocMetas(metadataBlocks));
248
+ }
249
+ if (titleBlock.abstract) {
250
+ rendered.push(`<p class="quarto-abstract">${titleBlock.abstract}</p>`);
251
+ }
252
+ return rendered.join("\n");
253
+ }
254
+ function renderDocMetas(docMetas) {
255
+ const rendered = [];
256
+ rendered.push(`<div class="quarto-meta-block">`);
257
+ docMetas.forEach((docMeta) => { rendered.push(docMeta); });
258
+ rendered.push(`</div>`);
259
+ return rendered.join("\n");
260
+ }
261
+ function renderDocMeta(label, vals) {
262
+ const rendered = [];
263
+ rendered.push(`<div class="quarto-meta">`);
264
+ rendered.push(`<p class="quarto-meta-title">${label}</p>`);
265
+ vals.forEach((val) => {
266
+ const clz = val.padded ? ` class="quarto-meta-padded"` : "";
267
+ rendered.push(`<p${clz}>${val.value}</p>`);
268
+ });
269
+ rendered.push(`</div>`);
270
+ return rendered.join("\n");
271
+ }
272
+ function parseAuthor(author) {
273
+ const authorsRaw = Array.isArray(author) ? author : [author];
274
+ const authors = [];
275
+ for (const authorRaw of authorsRaw) {
276
+ if (typeof (authorRaw) === "string") {
277
+ authors.push({
278
+ name: authorRaw
279
+ });
280
+ }
281
+ else if (typeof (authorRaw) === "object") {
282
+ const str = (key, defaultValue) => {
283
+ if (typeof (authorRaw[key]) === "string") {
284
+ return authorRaw[key];
285
+ }
286
+ else {
287
+ return defaultValue;
288
+ }
289
+ };
290
+ const affiliations = [];
291
+ const affiliationSimple = str("affiliation");
292
+ if (affiliationSimple) {
293
+ affiliations.push(affiliationSimple);
294
+ }
295
+ else if (authorRaw.affiliations) {
296
+ const affils = Array.isArray(authorRaw.affiliations) ? authorRaw.affiliations : [authorRaw.affiliations];
297
+ affils.forEach((affilRaw) => {
298
+ if (typeof (affilRaw) === "string") {
299
+ affiliations.push(affilRaw);
300
+ // eslint-disable-next-line no-constant-condition
301
+ }
302
+ else if (typeof (affilRaw === "object")) {
303
+ const affilRecord = affilRaw;
304
+ const name = affilRecord.name;
305
+ if (typeof (name) === "string") {
306
+ affiliations.push(name);
307
+ }
308
+ }
309
+ });
310
+ }
311
+ authors.push({
312
+ name: str("name", ""),
313
+ orcid: str("orcid"),
314
+ affil: affiliations
315
+ });
316
+ }
317
+ }
318
+ return authors;
319
+ }
320
+ //# sourceMappingURL=yaml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yaml.js","sourceRoot":"","sources":["../../src/plugins/yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,2EAA2E;AAC3E,iEAAiE;AACjE,uGAAuG;AACvG,MAAM,eAAe,GAAG,cAAc,CAAC;AAEvC,MAAM,UAAU,UAAU,CAAC,EAAc,EAAE,EAA4B;IACrE,MAAM,WAAW,GAAG,CAAC,EACnB,UAAU,GAAG,GAAG,EAChB,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,EACtC,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;IAEjC,SAAS,WAAW,CAClB,KAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,MAAe;QAEf,IAAI,GAAG,EACL,QAAQ,EACR,aAAa,EACb,WAAW,GAAG,KAAK,EACnB,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,EACzD,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAEhC,2DAA2D;QAC3D,0CAA0C;QAC1C,IAAI,SAAS,KAAK,CAAC,IAAI,WAAW,KAAK,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;YAC9D,OAAO,KAAK,CAAC;SACd;QAED,0CAA0C;QAC1C,iBAAiB;QACjB,KAAK,GAAG,GAAG,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,EAAE;YACvC,IAAI,UAAU,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,KAAK,CAAC,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CAAC,CAAC;yBACzB;qBACF;gBACH,CAAC,CAAC,CAAC;aACJ;YAED,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAE;gBACtB,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;gBACnB,KAAK,EAAE,YAAY;aACpB,CAAC,CAAA;SACH;KACF;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const attrs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=attrs.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * attrs.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { markdownItExtension } from './provider';
8
+ export const attrs = markdownItExtension({
9
+ id: '@quarto/attributes',
10
+ title: 'Markdown Attributes',
11
+ plugin: async () => {
12
+ const plugin = await import('markdown-it-attrs');
13
+ return [plugin.default];
14
+ }
15
+ });
16
+ //# sourceMappingURL=attrs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attrs.js","sourceRoot":"","sources":["../../src/providers/attrs.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAC;IACvC,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,qBAAqB;IAC5B,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,MAAM,CACzB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const callouts: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=callouts.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * callouts.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { calloutPlugin } from "../plugins/callouts";
8
+ import { markdownItExtension } from "./provider";
9
+ export const callouts = markdownItExtension({
10
+ id: '@quarto/callouts',
11
+ title: 'Quarto callouts',
12
+ plugin: async () => {
13
+ return [calloutPlugin];
14
+ }
15
+ });
16
+ //# sourceMappingURL=callouts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callouts.js","sourceRoot":"","sources":["../../src/providers/callouts.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG,mBAAmB,CAAC;IAC1C,EAAE,EAAE,kBAAkB;IACtB,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const cites: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=cites.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * cites.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { citationPlugin } from "../plugins/cites";
8
+ import { markdownItExtension } from "./provider";
9
+ export const cites = markdownItExtension({
10
+ id: '@quarto/cites',
11
+ title: 'Citations',
12
+ plugin: async () => {
13
+ return [citationPlugin];
14
+ }
15
+ });
16
+ //# sourceMappingURL=cites.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cites.js","sourceRoot":"","sources":["../../src/providers/cites.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAC;IACvC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const decorator: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=decorator.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * code.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { decoratorPlugin } from "../plugins/decorator";
8
+ import { markdownItExtension } from "./provider";
9
+ export const decorator = markdownItExtension({
10
+ id: '@quarto/fence',
11
+ title: 'Fenced Code Blocks',
12
+ plugin: async () => {
13
+ return [decoratorPlugin];
14
+ }
15
+ });
16
+ //# sourceMappingURL=decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/providers/decorator.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,mBAAmB,CAAC;IAC3C,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const deflist: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=deflist.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * deflist.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { markdownItExtension } from './provider';
8
+ export const deflist = markdownItExtension({
9
+ id: '@quarto/deflist',
10
+ title: 'Definition Lists',
11
+ plugin: async () => {
12
+ const plugin = await import('markdown-it-deflist');
13
+ return [plugin.default];
14
+ }
15
+ });
16
+ //# sourceMappingURL=deflist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deflist.js","sourceRoot":"","sources":["../../src/providers/deflist.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC;IACzC,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,MAAM,CACzB,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const divs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=divs.d.ts.map
@@ -0,0 +1,28 @@
1
+ /*
2
+ * callouts.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { divPlugin } from "../plugins/divs";
8
+ import { markdownItExtension } from "./provider";
9
+ export const divs = markdownItExtension({
10
+ id: '@quarto/divs',
11
+ title: 'Pandoc fenced divs',
12
+ plugin: async () => {
13
+ return [divPlugin];
14
+ },
15
+ hooks: {
16
+ preParse: {
17
+ run: (content) => {
18
+ // Detect close divs that are directly after text (e.g. not back to back whitespace)
19
+ // and add a whitespace. This will cause the close div to become a 'block'
20
+ // rather than appearing as the end of the paragraph block
21
+ const blockedDivs = content.replace(kCloseDivNoBlock, `$1\n\n$2`);
22
+ return Promise.resolve(blockedDivs);
23
+ }
24
+ }
25
+ }
26
+ });
27
+ const kCloseDivNoBlock = /([^\s])\n(:::+(?:\{.*\})?)/gm;
28
+ //# sourceMappingURL=divs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divs.js","sourceRoot":"","sources":["../../src/providers/divs.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAC;IACtC,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,GAAG,EAAE,CAAC,OAAe,EAAE,EAAE;gBACvB,oFAAoF;gBACpF,2EAA2E;gBAC3E,0DAA0D;gBAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;gBAClE,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;YACrC,CAAC;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const figureDivs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=figure-divs.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * figure-divs.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { figureDivsPlugin } from '../plugins/figure-divs';
8
+ import { markdownItExtension } from './provider';
9
+ export const figureDivs = markdownItExtension({
10
+ id: '@quarto/figureDivs',
11
+ title: 'Quarto Figure Divs',
12
+ plugin: async () => {
13
+ return [figureDivsPlugin];
14
+ }
15
+ });
16
+ //# sourceMappingURL=figure-divs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figure-divs.js","sourceRoot":"","sources":["../../src/providers/figure-divs.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,mBAAmB,CAAC;IAC5C,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const figures: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=figures.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * figures.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { figuresPlugin } from '../plugins/figures';
8
+ import { markdownItExtension } from './provider';
9
+ export const figures = markdownItExtension({
10
+ id: '@quarto/figures',
11
+ title: 'Quarto figures',
12
+ plugin: async () => {
13
+ return [figuresPlugin, { figcaption: true, copyAttrs: true }];
14
+ }
15
+ });
16
+ //# sourceMappingURL=figures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figures.js","sourceRoot":"","sources":["../../src/providers/figures.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC;IACzC,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const footnotes: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=footnotes.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * footnotes.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import { markdownItExtension } from './provider';
8
+ export const footnotes = markdownItExtension({
9
+ id: '@quarto/footnotes',
10
+ title: 'Footnotes',
11
+ plugin: async () => {
12
+ const footnotePlugin = await import('markdown-it-footnote');
13
+ return [footnotePlugin.default];
14
+ }
15
+ });
16
+ //# sourceMappingURL=footnotes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footnotes.js","sourceRoot":"","sources":["../../src/providers/footnotes.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,mBAAmB,CAAC;IAC3C,EAAE,EAAE,mBAAmB;IACvB,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,cAAc,GAAG,MAAM,MAAM,CACjC,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const gridtables: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=gridtables.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * gridtables.ts
3
+ *
4
+ * Copyright (C) 2020-2023 Posit Software, PBC
5
+ *
6
+ */
7
+ import gridTableRulePlugin from '../plugins/gridtables';
8
+ import { markdownItExtension } from './provider';
9
+ export const gridtables = markdownItExtension({
10
+ id: '@quarto/gridtables',
11
+ title: 'Grid Tables',
12
+ plugin: async () => {
13
+ return [gridTableRulePlugin];
14
+ }
15
+ });
16
+ //# sourceMappingURL=gridtables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gridtables.js","sourceRoot":"","sources":["../../src/providers/gridtables.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,mBAAmB,CAAC;IAC5C,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const math: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
+ //# sourceMappingURL=math.d.ts.map