@quarto/jupyterlab-quarto 0.1.41 → 0.1.42
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -3
- package/lib/__tests__/index.spec.js +1 -0
- package/lib/__tests__/myextension.spec.js +1 -0
- package/lib/ast/ast.js +1 -0
- package/lib/const.js +1 -0
- package/lib/hooks/codemirror.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/manager.js +1 -0
- package/lib/plugins/callouts.js +7 -6
- package/lib/plugins/callouts.js.map +1 -1
- package/lib/plugins/cites.js +4 -3
- package/lib/plugins/cites.js.map +1 -1
- package/lib/plugins/decorator.js +4 -3
- package/lib/plugins/decorator.js.map +1 -1
- package/lib/plugins/divs.js +6 -5
- package/lib/plugins/divs.js.map +1 -1
- package/lib/plugins/figure-divs.js +3 -2
- package/lib/plugins/figure-divs.js.map +1 -1
- package/lib/plugins/figures.js +8 -7
- package/lib/plugins/figures.js.map +1 -1
- package/lib/plugins/gridtables/common/gridtables/GetCells.js +1 -0
- package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/EmitTable.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/GetLine.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTable.js +1 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js +1 -0
- package/lib/plugins/gridtables/index.d.ts +1 -1
- package/lib/plugins/gridtables/index.js +4 -1
- package/lib/plugins/gridtables/index.js.map +1 -1
- package/lib/plugins/gridtables/interfaces/markdown-it/IState.js +1 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js +1 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js +1 -0
- package/lib/plugins/gridtables/rules/gridtable.js +1 -0
- package/lib/plugins/math.d.ts +1 -1
- package/lib/plugins/math.js +5 -2
- package/lib/plugins/math.js.map +1 -1
- package/lib/plugins/mermaid/index.d.ts +3 -1
- package/lib/plugins/mermaid/index.js +6 -4
- package/lib/plugins/mermaid/index.js.map +1 -1
- package/lib/plugins/shortcodes.js +2 -1
- package/lib/plugins/shortcodes.js.map +1 -1
- package/lib/plugins/spans.d.ts +1 -1
- package/lib/plugins/spans.js +7 -6
- package/lib/plugins/spans.js.map +1 -1
- package/lib/plugins/table-captions.js +3 -8
- package/lib/plugins/table-captions.js.map +1 -1
- package/lib/plugins/utils/html.d.ts +12 -0
- package/lib/plugins/utils/html.js +46 -0
- package/lib/plugins/utils/html.js.map +1 -0
- package/lib/plugins/utils/markdownit.d.ts +16 -0
- package/lib/plugins/utils/markdownit.js +45 -0
- package/lib/plugins/utils/markdownit.js.map +1 -0
- package/lib/plugins/utils/tok.d.ts +8 -0
- package/lib/plugins/utils/tok.js +14 -0
- package/lib/plugins/utils/tok.js.map +1 -0
- package/lib/plugins/yaml.d.ts +1 -1
- package/lib/plugins/yaml.js +6 -4
- package/lib/plugins/yaml.js.map +1 -1
- package/lib/providers/attrs.js +1 -0
- package/lib/providers/callouts.js +1 -0
- package/lib/providers/cites.js +1 -0
- package/lib/providers/decorator.js +1 -0
- package/lib/providers/deflist.js +1 -0
- package/lib/providers/divs.js +1 -0
- package/lib/providers/figure-divs.js +1 -0
- package/lib/providers/figures.js +1 -0
- package/lib/providers/footnotes.js +1 -0
- package/lib/providers/gridtables.js +1 -0
- package/lib/providers/math.js +1 -0
- package/lib/providers/mermaid.js +4 -1
- package/lib/providers/mermaid.js.map +1 -1
- package/lib/providers/provider.js +1 -0
- package/lib/providers/shortcodes.js +1 -0
- package/lib/providers/spans.js +1 -0
- package/lib/providers/sub.js +1 -0
- package/lib/providers/sup.js +1 -0
- package/lib/providers/table-captions.js +1 -0
- package/lib/providers/tasklists.js +1 -0
- package/lib/providers/yaml.js +3 -2
- package/lib/providers/yaml.js.map +1 -1
- package/lib/types.js +1 -0
- package/lib/utils/html.js +1 -0
- package/lib/utils/markdownit.js +1 -0
- package/lib/utils/tok.js +1 -0
- package/lib/widgets.js +1 -0
- package/package.json +1 -1
- package/style/base.css +4 -0
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/
|
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
|
package/lib/ast/ast.js
CHANGED
package/lib/const.js
CHANGED
package/lib/hooks/codemirror.js
CHANGED
package/lib/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
|
2
2
|
import { MarkdownItManager } from './types';
|
3
3
|
import '../style/index.css';
|
4
|
-
declare const _default: (JupyterFrontEndPlugin<
|
4
|
+
declare const _default: (JupyterFrontEndPlugin<void, JupyterFrontEnd.IShell, "desktop" | "mobile"> | JupyterFrontEndPlugin<MarkdownItManager, JupyterFrontEnd.IShell, "desktop" | "mobile">)[];
|
5
5
|
export default _default;
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAY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C7B,CAAC;CACF,CAAC;AAEF,4DAA4D;AAC5D,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,KAAK;IACL,KAAK;IACL,OAAO;IACP,OAAO;IACP,UAAU;IACV,GAAG;IACH,GAAG;IACH,SAAS;IACT,IAAI;IACJ,IAAI;CACL,CAAC;AAEF,gEAAgE;AAChE,MAAM,iBAAiB,GAAG;IACxB,UAAU;IACV,aAAa;IACb,KAAK;IACL,OAAO;IACP,QAAQ;IACR,SAAS;IACT,IAAI;IACJ,UAAU;CACX,CAAC;AAGF,oDAAoD;AACpD,eAAe,CAAC,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,iBAAiB,CAAE,CAAC"}
|
package/lib/manager.js
CHANGED
package/lib/plugins/callouts.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import Token from "markdown-it/lib/token";
|
2
|
-
import { addClass, readAttrValue } from "
|
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,
|
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(
|
143
|
+
function renderEndCallout() {
|
144
144
|
return `</div>`;
|
145
145
|
}
|
146
|
-
function renderStartCalloutTitle(tokens, idx
|
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(
|
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
|
-
|
206
|
+
const style = appearance || "default";
|
207
207
|
return `callout-style-${style}`;
|
208
208
|
};
|
209
|
+
//# sourceMappingURL=callouts.js.map
|
@@ -1 +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,
|
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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MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QACxC,OAAO,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC,CAAC,CAAA;IAEF,IAAI,YAAY,EAAE;QAChB,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;QAErD,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,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"}
|
package/lib/plugins/cites.js
CHANGED
@@ -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
|
-
|
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
|
-
|
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,
|
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
|
+
//# sourceMappingURL=cites.js.map
|
package/lib/plugins/cites.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cites.js","sourceRoot":"","sources":["../../src/plugins/cites.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAOF,MAAM,QAAQ,GAAG,aAAa,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAc,EAAE,EAAE;IAE/C,8DAA8D;IAC9D,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,SAAS,eAAe,CAAC,KAAK;QAClE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAE5B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YAC1B,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAE7C,yBAAyB;gBACzB,MAAM,QAAQ,GAAY,EAAE,CAAC;gBAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBAChC,IAA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attributeDecorator, decorator } from "
|
2
|
+
import { attributeDecorator, decorator } from "./utils/html";
|
3
3
|
import { kTokDivOpen } from "./divs";
|
4
4
|
import { kTokFigureOpen } from "./figures";
|
5
|
-
import { kTokHeadingOpen, kTokTableOpen } from "
|
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
|
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
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/plugins/decorator.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,uBAAuB,CAAA;
|
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,M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
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,
|
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(
|
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,
|
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*(?:([
|
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
|
package/lib/plugins/divs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"divs.js","sourceRoot":"","sources":["../../src/plugins/divs.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
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,IAAa,EAAE,IAAc;QAE/G,qDAAqD;QACrD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;QAEjD,OAAO,QAAQ,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;IAC5C,CAAC;IAED,2BAA2B;IAC3B,SAAS,YAAY;QACnB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qDAAqD;IACrD,2BAA2B;IAC3B,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CACnB,OAAO,EACP,YAAY,EACZ,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAE7B,uCAAuC;QACvC,IAAI,MAAM,EAAE;YACV,OAAO,IAAI,CAAC;SACb;QAED,2BAA2B;QAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,K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D,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 "
|
8
|
-
import { kTokInline, kTokParaClose, kTokParaOpen } from "
|
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
|
@@ -1 +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,
|
1
|
+
{"version":3,"file":"figure-divs.js","sourceRoot":"","sources":["../../src/plugins/figure-divs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM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Z,6DAA6D;oBAC7D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;wBACd,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC;wBACzC,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC;wBACtC,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC;wBACvC,IAAI,cAAc,CAAC,IAAI,KAAK,YAAY,IAAI,YAAY,CAAC,IAAI,KAAK,aAAa,IAAI,WAAW,CAAC,IAAI,KAAK,UAAU,EAAE;4BAClH,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;4BAC9C,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;yBAChD;qBACF;oBACD,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;iBACnC;aACF;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC,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"}
|
package/lib/plugins/figures.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
5
|
*
|
6
6
|
*/
|
7
|
-
import { kTokParaClose, kTokParaOpen } from "
|
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
|
-
|
20
|
+
let tabIndex = 1;
|
21
21
|
// do not process first and last token
|
22
|
-
for (
|
23
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
@@ -1 +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,
|
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,sCAAsC;QACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE;YACvD,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAE9B,IAAI,KAAK,CAAC,IA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}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export default function gridTableRulePlugin(md: any
|
1
|
+
export default function gridTableRulePlugin(md: any): void;
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -3,6 +3,9 @@
|
|
3
3
|
* Licensed under the MIT License. See LICENSE in the project root for license information.
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
5
5
|
import gridTableRule from "./rules/gridtable";
|
6
|
-
export default function gridTableRulePlugin(
|
6
|
+
export default function gridTableRulePlugin(
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
8
|
+
md) {
|
7
9
|
md.block.ruler.before("table", "gridtable", gridTableRule(md));
|
8
10
|
}
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/gridtables/index.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,mBAAmB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/gridtables/index.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,mBAAmB;AACvC,8DAA8D;AAC9D,EAAO;IAEP,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CACjB,OAAO,EACP,WAAW,EACX,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3B,CAAC"}
|
package/lib/plugins/math.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type MarkdownIt from "markdown-it";
|
2
2
|
export declare const kTokMathBlock = "math_block";
|
3
3
|
export declare const kTokMathInline = "math_inline";
|
4
|
-
export declare function mathjaxPlugin(md: MarkdownIt
|
4
|
+
export declare function mathjaxPlugin(md: MarkdownIt): void;
|
5
5
|
//# sourceMappingURL=math.d.ts.map
|
package/lib/plugins/math.js
CHANGED
@@ -17,7 +17,9 @@ function renderMath(content, convertOptions) {
|
|
17
17
|
// Test if potential opening or closing delimieter
|
18
18
|
// Assumes that there is a "$" at state.src[pos]
|
19
19
|
function isValidDelim(state, pos) {
|
20
|
-
|
20
|
+
const max = state.posMax;
|
21
|
+
let can_open = true;
|
22
|
+
let can_close = true;
|
21
23
|
const prevChar = pos > 0 ? state.src.charCodeAt(pos - 1) : -1, nextChar = pos + 1 <= max ? state.src.charCodeAt(pos + 1) : -1;
|
22
24
|
// Check non-whitespace conditions for opening and closing, and
|
23
25
|
// check that closing delimeter isn't followed by a number
|
@@ -152,7 +154,7 @@ function math_block(state, start, end, silent) {
|
|
152
154
|
token.markup = "$$";
|
153
155
|
return true;
|
154
156
|
}
|
155
|
-
export function mathjaxPlugin(md
|
157
|
+
export function mathjaxPlugin(md) {
|
156
158
|
// Default options
|
157
159
|
const convertOptions = {
|
158
160
|
display: false
|
@@ -172,3 +174,4 @@ export function mathjaxPlugin(md, options) {
|
|
172
174
|
};
|
173
175
|
}
|
174
176
|
;
|
177
|
+
//# sourceMappingURL=math.js.map
|
package/lib/plugins/math.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"math.js","sourceRoot":"","sources":["../../src/plugins/math.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiBH,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC;AAO5C,SAAS,UAAU,CAAC,OAAe,EAAE,cAA8B;IACjE,IAAI,cAAc,CAAC,OAAO,EAAE;QAC1B,OAAO,uCAAuC,OAAO,WAAW,CAAC;KAClE;SAAM;QACL,OAAO,uCAAuC,OAAO,YAAY,CAAC;KACnE;AACH,CAAC;AAED,kDAAkD;AAClD,gDAAgD;AAChD,SAAS,YAAY,CAAC,KAAkB,EAAE,GAAW;IACnD,
|
1
|
+
{"version":3,"file":"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