@quarto/jupyterlab-quarto 0.1.40 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -3
  3. package/lib/__tests__/index.spec.d.ts +6 -0
  4. package/lib/__tests__/index.spec.js +61 -0
  5. package/lib/__tests__/index.spec.js.map +1 -0
  6. package/lib/__tests__/myextension.spec.d.ts +6 -0
  7. package/lib/__tests__/myextension.spec.js +11 -0
  8. package/lib/__tests__/myextension.spec.js.map +1 -0
  9. package/lib/ast/ast.d.ts +3 -0
  10. package/lib/ast/ast.js +39 -0
  11. package/lib/ast/ast.js.map +1 -0
  12. package/lib/const.js +1 -0
  13. package/lib/const.js.map +1 -0
  14. package/lib/hooks/codemirror.js +1 -0
  15. package/lib/hooks/codemirror.js.map +1 -0
  16. package/lib/index.js +4 -1
  17. package/lib/index.js.map +1 -0
  18. package/lib/manager.js +1 -0
  19. package/lib/manager.js.map +1 -0
  20. package/lib/plugins/callouts.js +7 -6
  21. package/lib/plugins/callouts.js.map +1 -0
  22. package/lib/plugins/cites.js +4 -3
  23. package/lib/plugins/cites.js.map +1 -0
  24. package/lib/plugins/decorator.js +4 -3
  25. package/lib/plugins/decorator.js.map +1 -0
  26. package/lib/plugins/divs.js +6 -5
  27. package/lib/plugins/divs.js.map +1 -0
  28. package/lib/plugins/figure-divs.js +3 -2
  29. package/lib/plugins/figure-divs.js.map +1 -0
  30. package/lib/plugins/figures.js +8 -7
  31. package/lib/plugins/figures.js.map +1 -0
  32. package/lib/plugins/gridtables/common/gridtables/GetCells.js +1 -0
  33. package/lib/plugins/gridtables/common/gridtables/GetCells.js.map +1 -0
  34. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js +1 -0
  35. package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js.map +1 -0
  36. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js +1 -0
  37. package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js.map +1 -0
  38. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js +1 -0
  39. package/lib/plugins/gridtables/common/markdown-it/EmitTable.js.map +1 -0
  40. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js +1 -0
  41. package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js.map +1 -0
  42. package/lib/plugins/gridtables/common/markdown-it/GetLine.js +1 -0
  43. package/lib/plugins/gridtables/common/markdown-it/GetLine.js.map +1 -0
  44. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js +1 -0
  45. package/lib/plugins/gridtables/common/markdown-it/ParseTable.js.map +1 -0
  46. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js +1 -0
  47. package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js.map +1 -0
  48. package/lib/plugins/gridtables/index.d.ts +1 -1
  49. package/lib/plugins/gridtables/index.js +4 -1
  50. package/lib/plugins/gridtables/index.js.map +1 -0
  51. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js +1 -0
  52. package/lib/plugins/gridtables/interfaces/markdown-it/IState.js.map +1 -0
  53. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js +1 -0
  54. package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js.map +1 -0
  55. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.d.ts +1 -1
  56. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js +1 -0
  57. package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js.map +1 -0
  58. package/lib/plugins/gridtables/rules/gridtable.js +1 -0
  59. package/lib/plugins/gridtables/rules/gridtable.js.map +1 -0
  60. package/lib/plugins/math.d.ts +1 -1
  61. package/lib/plugins/math.js +5 -2
  62. package/lib/plugins/math.js.map +1 -0
  63. package/lib/plugins/mermaid/index.d.ts +3 -1
  64. package/lib/plugins/mermaid/index.js +6 -4
  65. package/lib/plugins/mermaid/index.js.map +1 -0
  66. package/lib/plugins/shortcodes.d.ts +4 -0
  67. package/lib/plugins/shortcodes.js +33 -0
  68. package/lib/plugins/shortcodes.js.map +1 -0
  69. package/lib/plugins/spans.d.ts +1 -1
  70. package/lib/plugins/spans.js +7 -6
  71. package/lib/plugins/spans.js.map +1 -0
  72. package/lib/plugins/table-captions.js +3 -8
  73. package/lib/plugins/table-captions.js.map +1 -0
  74. package/lib/plugins/utils/html.d.ts +12 -0
  75. package/lib/plugins/utils/html.js +46 -0
  76. package/lib/plugins/utils/html.js.map +1 -0
  77. package/lib/plugins/utils/markdownit.d.ts +16 -0
  78. package/lib/plugins/utils/markdownit.js +45 -0
  79. package/lib/plugins/utils/markdownit.js.map +1 -0
  80. package/lib/plugins/utils/tok.d.ts +8 -0
  81. package/lib/plugins/utils/tok.js +14 -0
  82. package/lib/plugins/utils/tok.js.map +1 -0
  83. package/lib/plugins/yaml.d.ts +1 -1
  84. package/lib/plugins/yaml.js +6 -4
  85. package/lib/plugins/yaml.js.map +1 -0
  86. package/lib/providers/attrs.js +1 -0
  87. package/lib/providers/attrs.js.map +1 -0
  88. package/lib/providers/callouts.js +1 -0
  89. package/lib/providers/callouts.js.map +1 -0
  90. package/lib/providers/cites.js +1 -0
  91. package/lib/providers/cites.js.map +1 -0
  92. package/lib/providers/decorator.js +1 -0
  93. package/lib/providers/decorator.js.map +1 -0
  94. package/lib/providers/deflist.js +1 -0
  95. package/lib/providers/deflist.js.map +1 -0
  96. package/lib/providers/divs.js +1 -0
  97. package/lib/providers/divs.js.map +1 -0
  98. package/lib/providers/figure-divs.js +1 -0
  99. package/lib/providers/figure-divs.js.map +1 -0
  100. package/lib/providers/figures.js +1 -0
  101. package/lib/providers/figures.js.map +1 -0
  102. package/lib/providers/footnotes.js +1 -0
  103. package/lib/providers/footnotes.js.map +1 -0
  104. package/lib/providers/gridtables.js +1 -0
  105. package/lib/providers/gridtables.js.map +1 -0
  106. package/lib/providers/math.js +1 -0
  107. package/lib/providers/math.js.map +1 -0
  108. package/lib/providers/mermaid.js +4 -1
  109. package/lib/providers/mermaid.js.map +1 -0
  110. package/lib/providers/provider.js +1 -0
  111. package/lib/providers/provider.js.map +1 -0
  112. package/lib/providers/shortcodes.d.ts +2 -0
  113. package/lib/providers/shortcodes.js +16 -0
  114. package/lib/providers/shortcodes.js.map +1 -0
  115. package/lib/providers/spans.js +1 -0
  116. package/lib/providers/spans.js.map +1 -0
  117. package/lib/providers/sub.js +1 -0
  118. package/lib/providers/sub.js.map +1 -0
  119. package/lib/providers/sup.js +1 -0
  120. package/lib/providers/sup.js.map +1 -0
  121. package/lib/providers/table-captions.js +1 -0
  122. package/lib/providers/table-captions.js.map +1 -0
  123. package/lib/providers/tasklists.js +1 -0
  124. package/lib/providers/tasklists.js.map +1 -0
  125. package/lib/providers/yaml.js +3 -2
  126. package/lib/providers/yaml.js.map +1 -0
  127. package/lib/types.js +1 -0
  128. package/lib/types.js.map +1 -0
  129. package/lib/utils/html.d.ts +2 -2
  130. package/lib/utils/html.js +1 -0
  131. package/lib/utils/html.js.map +1 -0
  132. package/lib/utils/markdownit.d.ts +15 -3
  133. package/lib/utils/markdownit.js +1 -0
  134. package/lib/utils/markdownit.js.map +1 -0
  135. package/lib/utils/tok.js +1 -0
  136. package/lib/utils/tok.js.map +1 -0
  137. package/lib/widgets.js +1 -0
  138. package/lib/widgets.js.map +1 -0
  139. package/package.json +7 -2
  140. package/style/base.css +39 -104
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2023, Charles Teague
3
+ Copyright (c) 2023, Posit, PBC
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
package/README.md CHANGED
@@ -3,10 +3,9 @@
3
3
  [Quarto](https://www.quarto.org) is an open source project that combines Jupyter notebooks with flexible options to use a single source document to produce high-quality articles, reports, presentations, websites, and books in HTML, PDF, MS Word, ePub, and more. Quarto supports a wide variety of useful new features useful in technical documents, including support for LaTeX equations, citations, cross-references, figure panels, callouts, advanced page layout, and more.
4
4
 
5
5
  The JupyterLab Quarto extension allows JupyterLab to render notebooks which include Quarto markdown content.
6
-
7
-  
6
+ <br/><br/>
8
7
  <p align="center">
9
- <img src="https://user-images.githubusercontent.com/261654/229227775-9b1cb1d7-36a6-4ad0-926a-bf8d3293d858.png" width="60%">
8
+ <img src="https://user-images.githubusercontent.com/261654/230087634-d5027ebc-8508-43b4-81c9-c4b7d6cfa738.png" width="60%">
10
9
  </p>
11
10
 
12
11
  ## Requirements
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ * @jest-environment-options {"url": "https://jestjs.io/"}
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=index.spec.d.ts.map
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ * @jest-environment-options {"url": "https://jestjs.io/"}
4
+ */
5
+ import { describe, test, expect } from '@jest/globals';
6
+ import MarkdownIt from 'markdown-it';
7
+ import sub from 'markdown-it-sub';
8
+ import sup from 'markdown-it-sup';
9
+ import deflist from 'markdown-it-deflist';
10
+ import figures from 'markdown-it-implicit-figures';
11
+ import footnotes from 'markdown-it-footnote';
12
+ import tasklists from 'markdown-it-task-lists';
13
+ import mermaid from '../plugins/mermaid';
14
+ import attrs from 'markdown-it-attrs';
15
+ import gridtables from '../plugins/gridtables';
16
+ import { citationPlugin as cites } from '../plugins/cites';
17
+ import { calloutPlugin as callouts } from '../plugins/callouts';
18
+ import { divPlugin as divs } from '../plugins/divs';
19
+ import { shortcodePlugin as shortcodes } from '../plugins/shortcodes';
20
+ // Provides resolved MarkdownIt options using the passed in options, the plugin
21
+ // options, and default options.
22
+ const resolveOptions = (options) => {
23
+ // Build options table
24
+ let allOptions = {
25
+ html: true,
26
+ linkify: true,
27
+ typographer: true,
28
+ };
29
+ return {
30
+ ...allOptions,
31
+ ...options
32
+ };
33
+ };
34
+ const makeMd = () => {
35
+ // no current plugin uses this parameter
36
+ const options = resolveOptions({});
37
+ let md = new MarkdownIt('default', options)
38
+ .use(sub)
39
+ .use(sup)
40
+ .use(deflist)
41
+ .use(figures, { figcaption: true })
42
+ .use(footnotes)
43
+ .use(tasklists)
44
+ .use(cites)
45
+ .use(mermaid)
46
+ .use(callouts)
47
+ .use(attrs)
48
+ .use(divs)
49
+ .use(gridtables)
50
+ .use(shortcodes);
51
+ return md;
52
+ };
53
+ describe('basic parse', () => {
54
+ test('simple shortcode parser', () => {
55
+ const str = '{{< shortcode >}}';
56
+ const result = '<p><span class="shortcode">{{&lt; shortcode &gt;}}</span></p>\n';
57
+ const md = makeMd();
58
+ expect(md.render(str)).toBe(result);
59
+ });
60
+ });
61
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/__tests__/index.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,UAAuB,MAAM,aAAa,CAAC;AAGlD,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;A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CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ * @jest-environment-options {"url": "https://jestjs.io/"}
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=myextension.spec.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ * @jest-environment-options {"url": "https://jestjs.io/"}
4
+ */
5
+ import { describe, it, expect } from '@jest/globals';
6
+ describe('myextension', () => {
7
+ it('should be tested', () => {
8
+ expect(1 + 1).toEqual(2);
9
+ });
10
+ });
11
+ //# sourceMappingURL=myextension.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myextension.spec.js","sourceRoot":"","sources":["../../src/__tests__/myextension.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type Token from "markdown-it/lib/token";
2
+ export declare const toAst: (toks: Token[]) => Token[];
3
+ //# sourceMappingURL=ast.d.ts.map
package/lib/ast/ast.js ADDED
@@ -0,0 +1,39 @@
1
+ export const toAst = (toks) => {
2
+ let pos = 0;
3
+ const inner = () => {
4
+ if (pos >= toks.length)
5
+ return;
6
+ const tok = toks[pos];
7
+ if (tok.type.endsWith('_open')) {
8
+ ++pos;
9
+ const children = [];
10
+ while (toks[pos].type !== tok.type.replace('_open', '_close')) {
11
+ children.push(inner());
12
+ }
13
+ ++pos;
14
+ return {
15
+ ...tok,
16
+ type: tok.type.replace('_open', ''),
17
+ children: children
18
+ };
19
+ }
20
+ if (tok.type === 'inline' && tok.children) {
21
+ const children = toAst(tok.children);
22
+ ++pos;
23
+ return {
24
+ ...tok,
25
+ children
26
+ };
27
+ }
28
+ ++pos;
29
+ return tok;
30
+ };
31
+ const result = [];
32
+ while (pos < toks.length) {
33
+ const node = inner();
34
+ if (node)
35
+ result.push(node);
36
+ }
37
+ return result;
38
+ };
39
+ //# sourceMappingURL=ast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/ast/ast.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,IAAa,EAAE,EAAE;IACnC,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,MAAM,KAAK,GAAG,GAAG,EAAE;QACf,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACtB,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC5B,EAAE,GAAG,CAAC;YACN,MAAM,QAAQ,GAAU,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;gBAC3D,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;aAC1B;YACD,EAAE,GAAG,CAAC;YACN,OAAO;gBACH,GAAG,GAAG;gBACN,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;gBACnC,QAAQ,EAAE,QAAQ;aACZ,CAAC;SACd;QACD,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,GAAG,CAAC,QAAQ,EAAE;YACvC,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACrC,EAAE,GAAG,CAAC;YACN,OAAO;gBACH,GAAG,GAAG;gBACN,QAAQ;aACF,CAAC;SACd;QACD,EAAE,GAAG,CAAC;QACN,OAAO,GAAG,CAAC;IACf,CAAC,CAAA;IACD,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE;QACtB,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC;QACrB,IAAI,IAAI;YAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC/B;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
package/lib/const.js CHANGED
@@ -9,3 +9,4 @@ import { Token } from '@lumino/coreutils';
9
9
  export const kPackageNamespace = 'jupyterlab-quarto';
10
10
  // The MarkdownIt manager token.
11
11
  export const kMarkdownItMgr = new Token(kPackageNamespace);
12
+ //# sourceMappingURL=const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,iCAAiC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD,gCAAgC;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,KAAK,CAAoB,iBAAiB,CAAC,CAAC"}
@@ -49,3 +49,4 @@ export const codeMirrorHighlight = (str, lang) => {
49
49
  }
50
50
  return '';
51
51
  };
52
+ //# sourceMappingURL=codemirror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codemirror.js","sourceRoot":"","sources":["../../src/hooks/codemirror.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAGF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,UAAU,qBAAqB;IACnC,wDAAwD;IACxD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAE5C,OAAO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AAI,CAAC,uBAAuB,IAAI,OAAO,EAAE,GAAG,CAAC,CAAC;SACvD;KACF;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,IAAI,CAAC,uBAAuB,IAAI,EAAE,CAAC,CAAC;QAC5C,OAAO,CAAC,IAAI,CAAC,kCAAkC,GAAG,EAAE,CAAC,CAAC;KACvD;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
package/lib/index.js CHANGED
@@ -19,6 +19,7 @@ import { figures } from './providers/figures';
19
19
  import { figureDivs } from './providers/figure-divs';
20
20
  import { tableCaptions } from './providers/table-captions';
21
21
  import { spans } from './providers/spans';
22
+ import { shortcodes } from './providers/shortcodes';
22
23
  const plugin = {
23
24
  id: `${kPackageNamespace}:plugin`,
24
25
  autoStart: true,
@@ -51,7 +52,9 @@ const kQuartoExtensions = [
51
52
  mermaid,
52
53
  callouts,
53
54
  decorator,
54
- yaml
55
+ yaml,
56
+ shortcodes
55
57
  ];
56
58
  // The extensions that should be enabled for Jupyter
57
59
  export default [plugin, ...kPandocExtensions, ...kQuartoExtensions];
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC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;IACJ,UAAU;CACX,CAAC;AAGF,oDAAoD;AACpD,eAAe,CAAC,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,iBAAiB,CAAE,CAAC"}
package/lib/manager.js CHANGED
@@ -114,3 +114,4 @@ const sortRanked = (left, right) => {
114
114
  var _a, _b;
115
115
  return ((_a = left.rank) !== null && _a !== void 0 ? _a : kDefaultRank) - ((_b = right.rank) !== null && _b !== void 0 ? _b : kDefaultRank);
116
116
  };
117
+ //# sourceMappingURL=manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manager.js","sourceRoot":"","sources":["../src/manager.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAe,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,UAAuB,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,+EAA+E;AAC/E,gCAAgC;AAChC,MAAM,cAAc,GAAG,CAAC,MAAwB,EAAE,OAAgB,EAAE,SAAqC,EAAE,EAAE;IAC3G,sBAAsB;IACtB,IAAI,UAAU,GAAY;QACxB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ,gBAAgB,CAAC,aAAa,CAAC,KAAK,YAAY;QACpE,SAAS,EAAE,mBAAmB;KAC/B,CAAC;IACF,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE;QAC9B,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,IAAI;gBACF,8BAA8B;gBAC9B,UAAU,GAAG,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;aAC3D;YAAC,OAAO,GAAG,EAAE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AAwB;IACxB,uBAAuB,CAAC,cAAc,GAAG,CAAC,OAAqC,EAAE,EAAE;QACjF,OAAO,IAAI,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAGD,sDAAsD;AACtD,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE;;IACjD,OAAO,CAAC,MAAA,IAAI,CAAC,IAAI,mCAAI,YAAY,CAAC,GAAG,CAAC,MAAA,KAAK,CAAC,IAAI,mCAAI,YAAY,CAAC,CAAC;AACpE,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import Token from "markdown-it/lib/token";
2
- import { addClass, readAttrValue } from "../utils/markdownit";
2
+ import { addClass, readAttrValue } from "./utils/markdownit";
3
3
  import { kTokDivClose, kTokDivOpen } from "./divs";
4
4
  const kTokCalloutOpen = "quarto_callout_open";
5
5
  const kTokCalloutClose = "quarto_callout_close";
@@ -130,7 +130,7 @@ export const calloutPlugin = (md) => {
130
130
  md.renderer.rules[kTokCalloutTitleClose] = renderEndCalloutTitle;
131
131
  };
132
132
  // Render pandoc-style divs
133
- function renderStartCallout(tokens, idx, options, env, self) {
133
+ function renderStartCallout(tokens, idx, _options, _env, self) {
134
134
  const token = tokens[idx];
135
135
  const callout = token.meta;
136
136
  // Add classes decorating as callout
@@ -140,10 +140,10 @@ function renderStartCallout(tokens, idx, options, env, self) {
140
140
  return `<div ${self.renderAttrs(token)}>`;
141
141
  }
142
142
  // Render pandoc-style divs
143
- function renderEndCallout(tokens, idx, options, env, self) {
143
+ function renderEndCallout() {
144
144
  return `</div>`;
145
145
  }
146
- function renderStartCalloutTitle(tokens, idx, options, env, self) {
146
+ function renderStartCalloutTitle(tokens, idx) {
147
147
  const token = tokens[idx];
148
148
  const title = readAttrValue("title", token.attrs) || "";
149
149
  const startContent = `
@@ -155,7 +155,7 @@ function renderStartCalloutTitle(tokens, idx, options, env, self) {
155
155
  `;
156
156
  return startContent;
157
157
  }
158
- function renderEndCalloutTitle(tokens, idx, options, env, self) {
158
+ function renderEndCalloutTitle() {
159
159
  return `</div>\n</div>`;
160
160
  }
161
161
  const calloutAppearance = (val) => {
@@ -203,6 +203,7 @@ const parseCallout = (attrs) => {
203
203
  }
204
204
  };
205
205
  const appearanceClass = (appearance) => {
206
- let style = appearance || "default";
206
+ const style = appearance || "default";
207
207
  return `callout-style-${style}`;
208
208
  };
209
+ //# sourceMappingURL=callouts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callouts.js","sourceRoot":"","sources":["../../src/plugins/callouts.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGnD,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAC9C,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEhD,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;AACzD,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAE3D,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AAC7D,MAAM,uBAAuB,GAAG,8BAA8B,CAAC;AAE/D,MAAM,cAAc,GAAG,UAAU,CAAC;AAClC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAW3C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAc,EAAE,EAAE;IAE9C,2BAA2B;IAC3B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAChB,gBAAgB,EAChB,CAAC,KAAK,EAAE,EAAE;QACR,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,KAAa,EAAE,EAAE;YAC3D,IAAI,YAAY,IAAI,CAAC,CAAC,EAAE;gBACtB,YAAY,GAAG,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AAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAAA,CAAC;QAC/F,MAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;QAEzE,OAAO;YACL,IAAI,EAAE,IAAI,IAAI,MAAM;YACpB,GAAG,EAAE,YAAY;YACjB,KAAK;YACL,UAAU;SACX,CAAA;KAEF;SAAM;QACL,OAAO,SAAS,CAAC;KAClB;AAEH,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,CAAC,UAA8C,EAAE,EAAE;IACzE,MAAM,KAAK,GAAG,UAAU,IAAI,SAAS,CAAC;IACtC,OAAO,iBAAiB,KAAK,EAAE,CAAC;AAClC,CAAC,CAAA"}
@@ -16,7 +16,7 @@ export const citationPlugin = (md) => {
16
16
  for (let i = 0; i < token.children.length; i++) {
17
17
  const child = token.children[i];
18
18
  if (child.type === 'text') {
19
- let content = child.content;
19
+ const content = child.content;
20
20
  const textToken = (text) => {
21
21
  const newToken = new state.Token('text', '', 0);
22
22
  newToken.content = text.join("");
@@ -41,7 +41,7 @@ export const citationPlugin = (md) => {
41
41
  // The classes
42
42
  const clz = ["cite", style];
43
43
  // If the cite ends in punctuation, trim that off and make that text
44
- let puncText = [];
44
+ const puncText = [];
45
45
  // Trim off ending punctuation
46
46
  if ([":", ".", "#", "$", "%", "&", "-", "+", "?", "<", ">", "~", "/", "!"].includes(cite[cite.length - 1])) {
47
47
  puncText.push(cite[cite.length - 1]);
@@ -140,8 +140,9 @@ export const citationPlugin = (md) => {
140
140
  md.renderer.rules[kTokCite] = renderCite;
141
141
  };
142
142
  // Render pandoc-style divs
143
- function renderCite(tokens, idx, options, env, self) {
143
+ function renderCite(tokens, idx, _options, _env, self) {
144
144
  const token = tokens[idx];
145
145
  const citeContent = `<code ${self.renderAttrs(token)}>${token.content}</code>`;
146
146
  return citeContent;
147
147
  }
148
+ //# sour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,IAAI,IAAI,KAAK,GAAG,EAAE;gCACvB,YAAY,EAAE,CAAC;gCACf,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;6BACjB;iCAAM,IAAI,IAAI,KAAK,GAAG,EAAE;gCACvB,YAAY,EAAE,CAAC;gCACf,OAAO,GAAG,MAAM,CAAC;gCACjB,SAAS,EAAE,CAAC;gCACZ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;6BACjB;iCACI;gCACH,IAAI,OAAO,KAAK,MAAM,EAAE;oCACtB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iCACjB;qCAAM;oCACL,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iCACjB;6BACF;yBACF;wBACD,SAAS,EAAE,CAAC;wBACZ,SAAS,EAAE,CAAC;qBACb;yBAAM;wBACL,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;qBACtB;iBACF;gBACD,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;aACxD;SACF;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAA;AAC1C,CAAC,CAAA;AAGD,2BAA2B;AAC3B,SAAS,UAAU,CAAC,MAAe,EAAE,GAAW,EAAE,QAA4B,EAAE,IAAa,EAAE,IAAc;IAC3G,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,WAAW,GAAI,SAAS,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,SAAS,CAAC;IAChF,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import Token from "markdown-it/lib/token";
2
- import { attributeDecorator, decorator } from "../utils/html";
2
+ import { attributeDecorator, decorator } from "./utils/html";
3
3
  import { kTokDivOpen } from "./divs";
4
4
  import { kTokFigureOpen } from "./figures";
5
- import { kTokHeadingOpen, kTokTableOpen } from "../utils/tok";
5
+ import { kTokHeadingOpen, kTokTableOpen } from "./utils/tok";
6
6
  import { kTokMathBlock } from "./math";
7
7
  const kTokDecorator = "quarto_decorator";
8
8
  const kQuartoDecoratorOptions = "quarto-decorator-options";
@@ -45,7 +45,7 @@ function decoratorTokForToken(token, options) {
45
45
  return decoratorTok;
46
46
  }
47
47
  // Render pandoc-style divs
48
- function renderDecorator(tokens, idx, options, env, self) {
48
+ function renderDecorator(tokens, idx) {
49
49
  var _a;
50
50
  const token = tokens[idx];
51
51
  const decoratorOptions = (_a = token.meta) === null || _a === void 0 ? void 0 : _a[kQuartoDecoratorOptions];
@@ -56,3 +56,4 @@ function renderDecorator(tokens, idx, options, env, self) {
56
56
  return attributeDecorator(token, decoratorOptions);
57
57
  }
58
58
  }
59
+ //# sourceMappingURL=decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/plugins/decorator.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,uBAAuB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AACzC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAG3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAc,EAAE,EAAE;IAEhD,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,SAAS,eAAe,CAAC,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,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,eAAe,CAAA;AACpD,CAAC,CAAA;AAED,SAAS,oBAAoB,CAAC,KAAY,EAAE,OAA0B;IACpE,MAAM,YAAY,GAAG,IAAI,KAAK,CAAC,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACxD,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IACjC,YAAY,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAC/B,IAAI,OAAO,EAAE;QACX,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5C,YAAY,CAAC,IAAI,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC;KACtD;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAGD,2BAA2B;AAC3B,SAAS,eAAe,CAAC,MAAe,EAAE,GAAW;;IACnD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,gBAAgB,GAAG,MAAA,KAAK,CAAC,IAAI,0CAAG,uBAAuB,CAAC,CAAC;IAC/D,IAAI,KAAK,CAAC,IAAI,EAAE;QACd,OAAO,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAE;KACjC;SAAM;QACL,OAAO,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;KACpD;AACH,CAAC"}
@@ -1,22 +1,22 @@
1
- import { addClass } from "../utils/markdownit";
1
+ import { addClass } from "./utils/markdownit";
2
2
  export const kDivRuleName = "pandocDiv";
3
3
  export const kTokDivOpen = 'pandoc_div_open';
4
4
  export const kTokDivClose = 'pandoc_div_close';
5
5
  export const divPlugin = (md) => {
6
6
  // Render pandoc-style divs
7
- function renderStartDiv(tokens, idx, options, env, self) {
7
+ function renderStartDiv(tokens, idx, _options, _env, self) {
8
8
  // Add a class to designate that this is a quarto dev
9
9
  const token = tokens[idx];
10
10
  token.attrs = addClass("quarto-div", token.attrs);
11
11
  return `<div ${self.renderAttrs(token)}>`;
12
12
  }
13
13
  // Render pandoc-style divs
14
- function renderEndDiv(tokens, idx, options, env, self) {
14
+ function renderEndDiv() {
15
15
  return `</div>`;
16
16
  }
17
17
  // TODO Implement a better test during validation run
18
18
  // Handle pandoc-style divs
19
- md.block.ruler.before("fence", kDivRuleName, (state, start, end, silent) => {
19
+ md.block.ruler.before("fence", kDivRuleName, (state, start, _end, silent) => {
20
20
  // This is a validation run, can ignore
21
21
  if (silent) {
22
22
  return true;
@@ -41,7 +41,7 @@ export const divPlugin = (md) => {
41
41
  // Three or more colons followed by a an optional brace with attributes
42
42
  const divBraceRegex = /^(:::+)\s*(?:(\{[\s\S]+?\}))?$/;
43
43
  // Three or more colons followed by a string with no braces
44
- const divNoBraceRegex = /^(:::+)\s*(?:([^\{\}\s]+?))?$/;
44
+ const divNoBraceRegex = /^(:::+)\s*(?:([^{}\s]+?))?$/;
45
45
  const matchers = [divBraceRegex, divNoBraceRegex];
46
46
  let match;
47
47
  for (const matcher of matchers) {
@@ -97,3 +97,4 @@ export const divPlugin = (md) => {
97
97
  md.renderer.rules[kTokDivOpen] = renderStartDiv;
98
98
  md.renderer.rules[kTokDivClose] = renderEndDiv;
99
99
  };
100
+ //# sourceMappingURL=divs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divs.js","sourceRoot":"","sources":["../../src/plugins/divs.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC7C,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAc,EAAE,EAAE;IAE1C,2BAA2B;IAC3B,SAAS,cAAc,CAAC,MAAe,EAAE,GAAW,EAAE,QAA4B,EAAE,IA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G,IAAI,CAAC;aAClB;YAED,IAAI,SAAS,EAAE;gBAEb,yCAAyC;gBACzC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;gBAE5B,qBAAqB;gBACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;gBAC/C,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;gBACpB,6DAA6D;gBAC7D,IAAI,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBAChC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;iBACnB;qBAAM,IAAI,IAAI,EAAE;oBACf,KAAK,CAAC,IAAI,GAAG,KAAK,IAAI,GAAG,CAAC;iBAC3B;gBACD,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;aACpB;iBAAM;gBACL,0CAA0C;gBAC1C,iBAAiB,CAAC,QAAQ,CAAC,CAAC;gBAE5B,qBAAqB;gBACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;gBACjD,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;aACrB;YAED,KAAK,CAAC,IAAI,GAAG,KAAK,GAAG,CAAC,CAAA;YACtB,OAAO,IAAI,CAAA;SACZ;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC,EACD,EAAE,GAAG,EAAE,EAAE,EAAE,CACZ,CAAA;IAED,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,cAAc,CAAA;IAC/C,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,YAAY,CAAA;AAChD,CAAC,CAAA"}
@@ -4,8 +4,8 @@
4
4
  * Copyright (C) 2020-2023 Posit Software, PBC
5
5
  *
6
6
  */
7
- import { readAttrValue } from "../utils/markdownit";
8
- import { kTokInline, kTokParaClose, kTokParaOpen } from "../utils/tok";
7
+ import { readAttrValue } from "./utils/markdownit";
8
+ import { kTokInline, kTokParaClose, kTokParaOpen } from "./utils/tok";
9
9
  import { kTokDivClose, kTokDivOpen } from "./divs";
10
10
  import { kTokFigCaptionClose, kTokFigCaptionOpen, mutateToFigureTok } from "./figures";
11
11
  const kFigureDivRuleName = "quarto-figure-divs";
@@ -50,3 +50,4 @@ const mutateToFigCaption = (token, type) => {
50
50
  token.tag = "figcaption";
51
51
  token.type = type === "open" ? kTokFigCaptionClose : kTokFigCaptionOpen;
52
52
  };
53
+ //# sourceMappingURL=figure-divs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figure-divs.js","sourceRoot":"","sources":["../../src/plugins/figure-divs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGvF,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAChD,MAAM,aAAa,GAAG,MAAM,CAAC;AAG7B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAc,EAAE,EAAE;IAEjD,2BAA2B;IAC3B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAChB,kBAAkB,EAClB,CAAC,KAAK,EAAE,EAAE;QAER,IAAI,WAAW,GAAc,EAAE,CAAC;QAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC9B,IAAI,KAAK,CAAC,IA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AAC,CAAA;AAED,MAAM,kBAAkB,GAAG,CAAC,KAAY,EAAE,IAAsB,EAAE,EAAE;IAClE,KAAK,CAAC,GAAG,GAAG,YAAY,CAAC;IACzB,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAAC;AAC1E,CAAC,CAAA"}
@@ -4,7 +4,7 @@
4
4
  * Copyright (C) 2020-2023 Posit Software, PBC
5
5
  *
6
6
  */
7
- import { kTokParaClose, kTokParaOpen } from "../utils/tok";
7
+ import { kTokParaClose, kTokParaOpen } from "./utils/tok";
8
8
  export const kTokFigureOpen = "figure_open";
9
9
  export const kTokFigureClose = "figure_close";
10
10
  export const kTokFigCaptionOpen = "figcaption_open";
@@ -17,10 +17,10 @@ export function figuresPlugin(md, options) {
17
17
  options = options || {};
18
18
  md.core.ruler.before("linkify", "implicit_figures", (state) => {
19
19
  // reset tabIndex on md.render()
20
- var tabIndex = 1;
20
+ let tabIndex = 1;
21
21
  // do not process first and last token
22
- for (var i = 1, l = state.tokens.length; i < l - 1; ++i) {
23
- var token = state.tokens[i];
22
+ for (let i = 1, l = state.tokens.length; i < l - 1; ++i) {
23
+ const token = state.tokens[i];
24
24
  if (token.type !== "inline") {
25
25
  continue;
26
26
  }
@@ -49,7 +49,7 @@ export function figuresPlugin(md, options) {
49
49
  continue;
50
50
  }
51
51
  // The image
52
- var image = token.children.length === 1 ? token.children[0] : token.children[1];
52
+ const image = token.children.length === 1 ? token.children[0] : token.children[1];
53
53
  // The image must have a caption to count as a figure
54
54
  if (!image.children || image.children.length === 0) {
55
55
  continue;
@@ -58,7 +58,7 @@ export function figuresPlugin(md, options) {
58
58
  // Previous token is paragraph open.
59
59
  // Next token is paragraph close.
60
60
  // Lets replace the paragraph tokens with figure tokens.
61
- var figure = state.tokens[i - 1];
61
+ const figure = state.tokens[i - 1];
62
62
  mutateToFigureTok(figure, "open");
63
63
  mutateToFigureTok(state.tokens[i + 1], "close");
64
64
  if (options.dataType == true) {
@@ -82,7 +82,7 @@ export function figuresPlugin(md, options) {
82
82
  }
83
83
  if (options.copyAttrs && image.attrs) {
84
84
  const f = options.copyAttrs === true ? "" : options.copyAttrs;
85
- figure.attrs = image.attrs.filter(([k, v]) => k.match(f));
85
+ figure.attrs = image.attrs.filter(([k]) => k.match(f));
86
86
  }
87
87
  if (options.tabindex == true) {
88
88
  // add a tabindex property
@@ -96,3 +96,4 @@ export function figuresPlugin(md, options) {
96
96
  }
97
97
  });
98
98
  }
99
+ //# sourceMappingURL=figures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figures.js","sourceRoot":"","sources":["../../src/plugins/figures.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAW1D,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC;AAC5C,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC;AAE9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AACpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,IAAsB,EAAE,EAAE;IACxE,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC;IAChE,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC;AACvB,CAAC,CAAA;AAED,MAAM,UAAU,aAAa,CAAC,EAAc,EAAE,OAAsB;IAClE,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;IAExB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,kBAAkB,EAAE,CAAC,KAAK,EAAE,EAAE;QAC5D,gCAAgC;QAChC,IAAI,QAAQ,GAAG,CAAC,CAAC;QAEjB,sCA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AAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC7D,QAAQ,EAAE,CAAC;aACZ;YAED,IAAI,OAAO,CAAC,WAAW,IAAI,IAAI,EAAE;gBAC/B,KAAK,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;aACrC;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -42,3 +42,4 @@ function trimEnd(s) {
42
42
  }
43
43
  return s.slice(0, s.indexOf(trimmed) + trimmed.length);
44
44
  }
45
+ //# sourceMappingURL=GetCells.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetCells.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/gridtables/GetCells.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;;;;EAKE;AACF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC5B,KAAiB;IAGjB,MAAM,KAAK,GAAG,EAAE,CAAC;IAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EACxC;QACI,IAAI,IAAI,GAAG,EAAE,CAAC;QAEd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EACrC;YACI,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;gBAChB,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,EACvB;gBACI,2BAA2B;gBAC3B,SAAS;aACZ;YAED,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAChB;QAED,8BAA8B;QAC9B,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAClB;YACI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EACtB;gBACI,MAAM;aACT;SACJ;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EACvB;YACI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC/B;QAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpB;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,OAAO,CACZ,CAAS;IAGT,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAEzB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EACxB;QACI,OAAO,EAAE,CAAC;KACb;IAED,OAAO,CAAC,CAAC,KAAK,CACV,CAAC,EACD,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC"}
@@ -24,3 +24,4 @@ export default function getColumnWidths(line) {
24
24
  }
25
25
  return columnMatch.map(s => s.length);
26
26
  }
27
+ //# sourceMappingURL=GetColumnWidths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetColumnWidths.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/gridtables/GetColumnWidths.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;;;;EAKE;AACF,MAAM,CAAC,OAAO,UAAU,eAAe,CACnC,IAAY;IAGZ,uCAAuC;IACvC,IAAI,WAAW,GAAG,IAAI;SACjB,MAAM,CAAC,CAAC,CAAC;SACT,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE9B,IAAI,WAAW,IAAI,IAAI,EACvB;QACI,0CAA0C;QAC1C,WAAW,GAAG,IAAI;aACb,MAAM,CAAC,CAAC,CAAC;aACT,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACjC;IAED,IAAI,WAAW,IAAI,IAAI,EACvB;QACI,OAAO,EAAE,CAAC;KACb;IAED,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC"}
@@ -10,3 +10,4 @@ var ColumnAlignments;
10
10
  ColumnAlignments["Right"] = "right";
11
11
  })(ColumnAlignments || (ColumnAlignments = {}));
12
12
  export default ColumnAlignments;
13
+ //# sourceMappingURL=ColumnAlignments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnAlignments.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/markdown-it/ColumnAlignments.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,IAAK,gBAMJ;AAND,WAAK,gBAAgB;IAEjB,6BAAS,CAAA;IACT,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACnB,CAAC,EANI,gBAAgB,KAAhB,gBAAgB,QAMpB;AAED,eAAe,gBAAgB,CAAC"}
@@ -64,3 +64,4 @@ function processRow(md, state, tag, columnAlignments, lineBegin, lineEnd, cells)
64
64
  }
65
65
  state.push('tr_close', 'tr', -1);
66
66
  }
67
+ //# sourceMappingURL=EmitTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmitTable.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/markdown-it/EmitTable.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAIhG,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAGlD,MAAM,CAAC,OAAO,UAAU,SAAS,CAC7B,EAAc,EACd,KAAa,EACb,MAAwB;IAExB,IAAI,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAE1C,IAAI,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACjD,KAAK,CAAC,GAAG,GAAG,C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AAC,CAAC,CAAC;YACxC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;SACvB;aAED;YACI,6CAA6C;YAC7C,IAAI,IAAI,GAAG,EAAE;iBACR,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBAC7B,IAAI,EAAE,CAAC;YAEZ,oDAAoD;YACpD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC;gBAC5B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;gBAC3B,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EACnC;gBACI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;aACzC;YAED,IAAI,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YAC5C,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;SACvB;QAED,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;KACvC;IAED,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC"}
@@ -16,3 +16,4 @@ export default function getCharCodeAtStartOfLine(state, line) {
16
16
  }
17
17
  return state.src.charCodeAt(pos);
18
18
  }
19
+ //# sourceMappingURL=GetCharCodeAtStartOfLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetCharCodeAtStartOfLine.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAIhG;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC5C,KAAa,EACb,IAAY;IAGZ,MAAM,GAAG,GACL,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;QAClB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC7B;QACI,OAAO,CAAC,CAAC,CAAC;KACb;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC"}
@@ -7,3 +7,4 @@ export default function getLine(state, line) {
7
7
  const end = state.eMarks[line];
8
8
  return state.src.substr(start, end - start);
9
9
  }
10
+ //# sourceMappingURL=GetLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetLine.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common/markdown-it/GetLine.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAIhG,MAAM,CAAC,OAAO,UAAU,OAAO,CAC3B,KAAa,EACb,IAAY;IAGZ,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAEnD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE/B,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CACnB,KAAK,EACL,GAAG,GAAG,KAAK,CAAC,CAAC;AACrB,CAAC"}
@@ -159,3 +159,4 @@ function validateColumnWidths(matches, columnWidths) {
159
159
  }
160
160
  return cells;
161
161
  }
162
+ //# sourceMappingURL=ParseTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseTable.js","sourceRoot":"","sources":["../../../../../src/plugins/gridtables/common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