@quarto/jupyterlab-quarto 0.1.41 → 0.1.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. package/README.md +2 -3
  2. package/package.json +1 -1
  3. package/style/base.css +4 -0
  4. package/lib/__tests__/index.spec.d.ts +0 -6
  5. package/lib/__tests__/index.spec.js +0 -60
  6. package/lib/__tests__/index.spec.js.map +0 -1
  7. package/lib/__tests__/myextension.spec.d.ts +0 -6
  8. package/lib/__tests__/myextension.spec.js +0 -10
  9. package/lib/__tests__/myextension.spec.js.map +0 -1
  10. package/lib/ast/ast.d.ts +0 -3
  11. package/lib/ast/ast.js +0 -38
  12. package/lib/ast/ast.js.map +0 -1
  13. package/lib/const.d.ts +0 -5
  14. package/lib/const.js +0 -11
  15. package/lib/const.js.map +0 -1
  16. package/lib/hooks/codemirror.d.ts +0 -4
  17. package/lib/hooks/codemirror.js +0 -51
  18. package/lib/hooks/codemirror.js.map +0 -1
  19. package/lib/index.d.ts +0 -6
  20. package/lib/index.js +0 -59
  21. package/lib/index.js.map +0 -1
  22. package/lib/manager.d.ts +0 -8
  23. package/lib/manager.js +0 -116
  24. package/lib/manager.js.map +0 -1
  25. package/lib/plugins/callouts.d.ts +0 -3
  26. package/lib/plugins/callouts.js +0 -208
  27. package/lib/plugins/callouts.js.map +0 -1
  28. package/lib/plugins/cites.d.ts +0 -3
  29. package/lib/plugins/cites.js +0 -147
  30. package/lib/plugins/cites.js.map +0 -1
  31. package/lib/plugins/decorator.d.ts +0 -3
  32. package/lib/plugins/decorator.js +0 -58
  33. package/lib/plugins/decorator.js.map +0 -1
  34. package/lib/plugins/divs.d.ts +0 -6
  35. package/lib/plugins/divs.js +0 -99
  36. package/lib/plugins/divs.js.map +0 -1
  37. package/lib/plugins/figure-divs.d.ts +0 -3
  38. package/lib/plugins/figure-divs.js +0 -52
  39. package/lib/plugins/figure-divs.js.map +0 -1
  40. package/lib/plugins/figures.d.ts +0 -17
  41. package/lib/plugins/figures.js +0 -98
  42. package/lib/plugins/figures.js.map +0 -1
  43. package/lib/plugins/gridtables/common/gridtables/GetCells.d.ts +0 -8
  44. package/lib/plugins/gridtables/common/gridtables/GetCells.js +0 -44
  45. package/lib/plugins/gridtables/common/gridtables/GetCells.js.map +0 -1
  46. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.d.ts +0 -8
  47. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js +0 -26
  48. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js.map +0 -1
  49. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.d.ts +0 -8
  50. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js +0 -12
  51. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js.map +0 -1
  52. package/lib/plugins/gridtables/common/markdown-it/EmitTable.d.ts +0 -5
  53. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js +0 -66
  54. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js.map +0 -1
  55. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.d.ts +0 -9
  56. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js +0 -18
  57. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js.map +0 -1
  58. package/lib/plugins/gridtables/common/markdown-it/GetLine.d.ts +0 -3
  59. package/lib/plugins/gridtables/common/markdown-it/GetLine.js +0 -9
  60. package/lib/plugins/gridtables/common/markdown-it/GetLine.js.map +0 -1
  61. package/lib/plugins/gridtables/common/markdown-it/ParseTable.d.ts +0 -4
  62. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js +0 -161
  63. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js.map +0 -1
  64. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.d.ts +0 -13
  65. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js +0 -17
  66. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js.map +0 -1
  67. package/lib/plugins/gridtables/index.d.ts +0 -2
  68. package/lib/plugins/gridtables/index.js +0 -8
  69. package/lib/plugins/gridtables/index.js.map +0 -1
  70. package/lib/plugins/gridtables/interfaces/markdown-it/IState.d.ts +0 -11
  71. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js +0 -5
  72. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js.map +0 -1
  73. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.d.ts +0 -7
  74. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js +0 -5
  75. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js.map +0 -1
  76. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.d.ts +0 -4
  77. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js +0 -5
  78. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js.map +0 -1
  79. package/lib/plugins/gridtables/rules/gridtable.d.ts +0 -4
  80. package/lib/plugins/gridtables/rules/gridtable.js +0 -25
  81. package/lib/plugins/gridtables/rules/gridtable.js.map +0 -1
  82. package/lib/plugins/math.d.ts +0 -5
  83. package/lib/plugins/math.js +0 -174
  84. package/lib/plugins/math.js.map +0 -1
  85. package/lib/plugins/mermaid/index.d.ts +0 -3
  86. package/lib/plugins/mermaid/index.js +0 -53
  87. package/lib/plugins/mermaid/index.js.map +0 -1
  88. package/lib/plugins/shortcodes.d.ts +0 -4
  89. package/lib/plugins/shortcodes.js +0 -32
  90. package/lib/plugins/shortcodes.js.map +0 -1
  91. package/lib/plugins/spans.d.ts +0 -3
  92. package/lib/plugins/spans.js +0 -38
  93. package/lib/plugins/spans.js.map +0 -1
  94. package/lib/plugins/table-captions.d.ts +0 -3
  95. package/lib/plugins/table-captions.js +0 -74
  96. package/lib/plugins/table-captions.js.map +0 -1
  97. package/lib/plugins/yaml.d.ts +0 -3
  98. package/lib/plugins/yaml.js +0 -309
  99. package/lib/plugins/yaml.js.map +0 -1
  100. package/lib/providers/attrs.d.ts +0 -2
  101. package/lib/providers/attrs.js +0 -15
  102. package/lib/providers/attrs.js.map +0 -1
  103. package/lib/providers/callouts.d.ts +0 -2
  104. package/lib/providers/callouts.js +0 -15
  105. package/lib/providers/callouts.js.map +0 -1
  106. package/lib/providers/cites.d.ts +0 -2
  107. package/lib/providers/cites.js +0 -15
  108. package/lib/providers/cites.js.map +0 -1
  109. package/lib/providers/decorator.d.ts +0 -2
  110. package/lib/providers/decorator.js +0 -15
  111. package/lib/providers/decorator.js.map +0 -1
  112. package/lib/providers/deflist.d.ts +0 -2
  113. package/lib/providers/deflist.js +0 -15
  114. package/lib/providers/deflist.js.map +0 -1
  115. package/lib/providers/divs.d.ts +0 -2
  116. package/lib/providers/divs.js +0 -27
  117. package/lib/providers/divs.js.map +0 -1
  118. package/lib/providers/figure-divs.d.ts +0 -2
  119. package/lib/providers/figure-divs.js +0 -15
  120. package/lib/providers/figure-divs.js.map +0 -1
  121. package/lib/providers/figures.d.ts +0 -2
  122. package/lib/providers/figures.js +0 -15
  123. package/lib/providers/figures.js.map +0 -1
  124. package/lib/providers/footnotes.d.ts +0 -2
  125. package/lib/providers/footnotes.js +0 -15
  126. package/lib/providers/footnotes.js.map +0 -1
  127. package/lib/providers/gridtables.d.ts +0 -2
  128. package/lib/providers/gridtables.js +0 -15
  129. package/lib/providers/gridtables.js.map +0 -1
  130. package/lib/providers/math.d.ts +0 -2
  131. package/lib/providers/math.js +0 -104
  132. package/lib/providers/math.js.map +0 -1
  133. package/lib/providers/mermaid.d.ts +0 -2
  134. package/lib/providers/mermaid.js +0 -13
  135. package/lib/providers/mermaid.js.map +0 -1
  136. package/lib/providers/provider.d.ts +0 -4
  137. package/lib/providers/provider.js +0 -12
  138. package/lib/providers/provider.js.map +0 -1
  139. package/lib/providers/shortcodes.d.ts +0 -2
  140. package/lib/providers/shortcodes.js +0 -15
  141. package/lib/providers/shortcodes.js.map +0 -1
  142. package/lib/providers/spans.d.ts +0 -2
  143. package/lib/providers/spans.js +0 -15
  144. package/lib/providers/spans.js.map +0 -1
  145. package/lib/providers/sub.d.ts +0 -2
  146. package/lib/providers/sub.js +0 -15
  147. package/lib/providers/sub.js.map +0 -1
  148. package/lib/providers/sup.d.ts +0 -2
  149. package/lib/providers/sup.js +0 -15
  150. package/lib/providers/sup.js.map +0 -1
  151. package/lib/providers/table-captions.d.ts +0 -2
  152. package/lib/providers/table-captions.js +0 -15
  153. package/lib/providers/table-captions.js.map +0 -1
  154. package/lib/providers/tasklists.d.ts +0 -2
  155. package/lib/providers/tasklists.js +0 -15
  156. package/lib/providers/tasklists.js.map +0 -1
  157. package/lib/providers/yaml.d.ts +0 -2
  158. package/lib/providers/yaml.js +0 -15
  159. package/lib/providers/yaml.js.map +0 -1
  160. package/lib/types.d.ts +0 -44
  161. package/lib/types.js +0 -1
  162. package/lib/types.js.map +0 -1
  163. package/lib/utils/html.d.ts +0 -12
  164. package/lib/utils/html.js +0 -45
  165. package/lib/utils/html.js.map +0 -1
  166. package/lib/utils/markdownit.d.ts +0 -16
  167. package/lib/utils/markdownit.js +0 -44
  168. package/lib/utils/markdownit.js.map +0 -1
  169. package/lib/utils/tok.d.ts +0 -8
  170. package/lib/utils/tok.js +0 -13
  171. package/lib/utils/tok.js.map +0 -1
  172. package/lib/widgets.d.ts +0 -15
  173. package/lib/widgets.js +0 -57
  174. package/lib/widgets.js.map +0 -1
@@ -1,309 +0,0 @@
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 markdownitFrontMatterPlugin(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, auto_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
- auto_closed = true;
92
- break;
93
- }
94
- const old_parent = state.parentType;
95
- const old_line_max = state.lineMax;
96
- state.parentType = "root";
97
- // this will prevent lazy continuations from ever going past our end marker
98
- state.lineMax = nextLine;
99
- const token = state.push("front_matter", "", 0);
100
- token.hidden = true;
101
- token.markup = state.src.slice(startLine, pos);
102
- token.block = true;
103
- token.map = [startLine, pos];
104
- token.meta = state.src.slice(start_content, start - 1);
105
- state.parentType = old_parent;
106
- state.lineMax = old_line_max;
107
- state.line = nextLine + (auto_closed ? 1 : 0);
108
- if (cb) {
109
- cb(token.meta);
110
- }
111
- return true;
112
- }
113
- md.block.ruler.before("table", kTokFrontMatter, frontMatter, {
114
- alt: ["paragraph", "reference", "blockquote", "list"],
115
- });
116
- // Add rendering
117
- md.renderer.rules[kTokFrontMatter] = renderFrontMatter;
118
- }
119
- function renderFrontMatter(tokens, idx, options, env, self) {
120
- const token = tokens[idx];
121
- // Parse the markup
122
- const frontUnknown = parseFrontMatterStr(token.markup);
123
- // Extract important content
124
- if (typeof (frontUnknown) === "object") {
125
- const titleBlock = {};
126
- const frontMatter = frontUnknown;
127
- const readStr = (key) => {
128
- if (frontMatter[key] === undefined) {
129
- return undefined;
130
- }
131
- else if (typeof (frontMatter[key]) === "string") {
132
- const val = frontMatter[key];
133
- delete frontMatter[key];
134
- return val;
135
- }
136
- else {
137
- return undefined;
138
- }
139
- };
140
- // Read simple values
141
- titleBlock.title = readStr("title");
142
- titleBlock.subtitle = readStr("subtitle");
143
- titleBlock.abstract = readStr("abstract");
144
- titleBlock.date = readStr("date");
145
- titleBlock.modified = readStr("date-modified");
146
- titleBlock.doi = readStr("doi");
147
- // Read Authors
148
- titleBlock.authors = parseAuthor(frontMatter.author || frontMatter.authors);
149
- delete frontMatter.author;
150
- delete frontMatter.authors;
151
- // The final rendered HTML output
152
- const titleLines = [];
153
- // Render the title block and other yaml options
154
- const titleRendered = renderTitle(titleBlock);
155
- titleLines.push(titleRendered);
156
- if (Object.keys(frontMatter).length > 0) {
157
- // decorator
158
- const decor = decorator(["Options"]);
159
- titleLines.push(decor);
160
- // yaml
161
- const yamlDump = yaml.dump(frontMatter);
162
- const otherYamlRendered = `<pre><code class="cm-s-jupyter language-yaml quarto-frontmatter">${yamlDump}</code></pre>`;
163
- titleLines.push(otherYamlRendered);
164
- }
165
- return titleLines.join("\n");
166
- }
167
- else {
168
- return "";
169
- }
170
- }
171
- // TODO: Use core function instead
172
- function parseFrontMatterStr(str) {
173
- str = str.replace(/---\s*$/, "");
174
- try {
175
- return yaml.load(str, { schema: yaml.FAILSAFE_SCHEMA });
176
- }
177
- catch (error) {
178
- return undefined;
179
- }
180
- }
181
- function renderTitle(titleBlock) {
182
- var _a;
183
- const rendered = [];
184
- if (titleBlock.title) {
185
- rendered.push(`<h1>${titleBlock.title}</h1>`);
186
- }
187
- if (titleBlock.subtitle) {
188
- rendered.push(`<p class="quarto-subtitle">${titleBlock.subtitle}</p>`);
189
- }
190
- const metadataBlocks = [];
191
- if (titleBlock.authors && ((_a = titleBlock.authors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
192
- const names = [];
193
- const affils = [];
194
- for (let i = 0; i < titleBlock.authors.length; i++) {
195
- const author = titleBlock.authors[i];
196
- if (author.orcid) {
197
- names.push({
198
- value: `${author.name}<a href="https://orcid.org/${author.orcid}" class="quarto-orcid"><i></i></a>`,
199
- padded: i > 0
200
- });
201
- }
202
- else {
203
- names.push({ value: author.name, padded: i > 0 });
204
- }
205
- // Place empty rows to allow affiliations to line up
206
- const emptyCount = author.affil ? Math.max(author.affil.length - 1, 0) : 0;
207
- for (let j = 0; j < emptyCount; j++) {
208
- names.push({ value: "&nbsp;" });
209
- }
210
- // Collect affilations
211
- if (author.affil) {
212
- for (let k = 0; k < author.affil.length; k++) {
213
- const affil = author.affil[k];
214
- affils.push({
215
- value: affil,
216
- padded: i > 0 && k == 0
217
- });
218
- }
219
- }
220
- }
221
- const authLabel = names.length === 1 ? "Author" : "Authors";
222
- metadataBlocks.push(renderDocMeta(authLabel, names));
223
- if (affils.length > 0) {
224
- const affilLabel = affils.length === 1 ? "Affiliation" : "Affiliations";
225
- metadataBlocks.push(renderDocMeta(affilLabel, affils));
226
- }
227
- }
228
- if (titleBlock.date) {
229
- metadataBlocks.push(renderDocMeta("Date", [{ value: titleBlock.date }]));
230
- }
231
- if (titleBlock.modified) {
232
- metadataBlocks.push(renderDocMeta("Modified", [{ value: titleBlock.modified }]));
233
- }
234
- if (titleBlock.doi) {
235
- metadataBlocks.push(renderDocMeta("DOI", [{ value: `<a href="https://doi.org/${titleBlock.doi}">${titleBlock.doi}</a>` }]));
236
- }
237
- if (metadataBlocks.length > 0) {
238
- rendered.push(renderDocMetas(metadataBlocks));
239
- }
240
- if (titleBlock.abstract) {
241
- rendered.push(`<p class="quarto-abstract">${titleBlock.abstract}</p>`);
242
- }
243
- return rendered.join("\n");
244
- }
245
- function renderDocMetas(docMetas) {
246
- const rendered = [];
247
- rendered.push(`<div class="quarto-meta-block">`);
248
- docMetas.forEach((docMeta) => { rendered.push(docMeta); });
249
- rendered.push(`</div>`);
250
- return rendered.join("\n");
251
- }
252
- function renderDocMeta(label, vals) {
253
- const rendered = [];
254
- rendered.push(`<div class="quarto-meta">`);
255
- rendered.push(`<p class="quarto-meta-title">${label}</p>`);
256
- vals.forEach((val) => {
257
- const clz = val.padded ? ` class="quarto-meta-padded"` : "";
258
- rendered.push(`<p${clz}>${val.value}</p>`);
259
- });
260
- rendered.push(`</div>`);
261
- return rendered.join("\n");
262
- }
263
- function parseAuthor(author) {
264
- const authorsRaw = Array.isArray(author) ? author : [author];
265
- const authors = [];
266
- for (const authorRaw of authorsRaw) {
267
- if (typeof (authorRaw) === "string") {
268
- authors.push({
269
- name: authorRaw
270
- });
271
- }
272
- else if (typeof (authorRaw) === "object") {
273
- const str = (key, defaultValue) => {
274
- if (typeof (authorRaw[key]) === "string") {
275
- return authorRaw[key];
276
- }
277
- else {
278
- return defaultValue;
279
- }
280
- };
281
- const affiliations = [];
282
- const affiliationSimple = str("affiliation");
283
- if (affiliationSimple) {
284
- affiliations.push(affiliationSimple);
285
- }
286
- else if (authorRaw.affiliations) {
287
- const affils = Array.isArray(authorRaw.affiliations) ? authorRaw.affiliations : [authorRaw.affiliations];
288
- affils.forEach((affilRaw) => {
289
- if (typeof (affilRaw) === "string") {
290
- affiliations.push(affilRaw);
291
- }
292
- else if (typeof (affilRaw === "object")) {
293
- const affilRecord = affilRaw;
294
- const name = affilRecord.name;
295
- if (typeof (name) === "string") {
296
- affiliations.push(name);
297
- }
298
- }
299
- });
300
- }
301
- authors.push({
302
- name: str("name", ""),
303
- orcid: str("orcid"),
304
- affil: affiliations
305
- });
306
- }
307
- }
308
- return authors;
309
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"yaml.js","sourceRoot":"","sources":["../../src/plugins/yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,2EAA2E;AAC3E,iEAAiE;AACjE,uGAAuG;AACvG,MAAM,eAAe,GAAG,cAAc,CAAC;AAEvC,MAAM,UAAU,2BAA2B,CAAC,EAAc,EAAE,EAA4B;IACtF,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,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AAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAC1B,IAAI,OAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ,EAAE;wBACjC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;qBAC7B;yBAAM,IAAI,OAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,EAAE;wBACxC,MAAM,WAAW,GAAG,QAAmC,CAAC;wBACxD,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;wBAC9B,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;4BAC7B,YAAY,CAAC,IAAI,CAAC,IAAI,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"}
@@ -1,2 +0,0 @@
1
- export declare const attrs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=attrs.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const callouts: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=callouts.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const cites: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=cites.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const decorator: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=decorator.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const deflist: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=deflist.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const divs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=divs.d.ts.map
@@ -1,27 +0,0 @@
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;
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const figureDivs: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=figure-divs.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const figures: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=figures.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const footnotes: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=footnotes.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const gridtables: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=gridtables.d.ts.map
@@ -1,15 +0,0 @@
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
- });
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const math: import("@jupyterlab/application").JupyterFrontEndPlugin<void, import("@jupyterlab/application").JupyterFrontEnd.IShell, "desktop" | "mobile">;
2
- //# sourceMappingURL=math.d.ts.map