@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
@@ -4,15 +4,16 @@ export default function mermaidPlugin(md, options) {
|
|
4
4
|
const kContainer = "quarto-mermaid";
|
5
5
|
Mermaid.initialize({
|
6
6
|
securityLevel: "loose",
|
7
|
+
theme: options.dark ? "dark" : "default",
|
7
8
|
...options,
|
8
9
|
});
|
9
|
-
|
10
|
+
const defaultFenceRenderer = md.renderer.rules.fence;
|
10
11
|
// Render custom code types as SVGs, letting the fence parser do all the heavy lifting.
|
11
12
|
function mermaidFenceRenderer(tokens, idx, options, env, slf) {
|
12
|
-
|
13
|
+
const token = tokens[idx];
|
13
14
|
if (token.info === kLang || (token.attrs !== null && token.attrs.length === 1 && token.attrs[0][0] === kLang)) {
|
14
15
|
let imageHTML = "";
|
15
|
-
|
16
|
+
const imageAttrs = [];
|
16
17
|
// Create element to render into
|
17
18
|
const element = document.createElement("div");
|
18
19
|
document.body.appendChild(element);
|
@@ -20,7 +21,7 @@ export default function mermaidPlugin(md, options) {
|
|
20
21
|
try {
|
21
22
|
Mermaid.mermaidAPI.render(kContainer, token.content, (html) => {
|
22
23
|
// We need to forcibly extract the max-width/height attributes to set on img tag
|
23
|
-
|
24
|
+
const mermaidEl = document.getElementById(kContainer);
|
24
25
|
if (mermaidEl !== null) {
|
25
26
|
imageAttrs.push([
|
26
27
|
"style",
|
@@ -51,3 +52,4 @@ export default function mermaidPlugin(md, options) {
|
|
51
52
|
}
|
52
53
|
md.renderer.rules.fence = mermaidFenceRenderer;
|
53
54
|
}
|
55
|
+
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/mermaid/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/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UAAU,CAAC,CAAC;oBACtD,IAAI,SAAS,KAAK,IAAI,EAAE;wBACtB,UAAU,CAAC,IAAI,CAAC;4BACd,OAAO;4BACP,aAAa,SAAS,CAAC,KAAK,CAAC,QAAQ,eAAe,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE;yBAChF,CAAC,CAAC;qBACJ;oBACD,aAAa;oBACb,SAAS,GAAG,IAAI,CAAC;gBACnB,CAAC,EACD,OAAO,CACR,CAAC;aACH;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,yCAAyC,CAAC,QAAQ,CAAA;aAC1D;oBAAS;gBACR,OAAO,CAAC,MAAM,EAAE,CAAC;aAClB;YAED,2BAA2B;YAC3B,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;YAChF,OAAO,QAAQ,GAAG,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC;SAC1D;aAAM;YACL,IAAI,oBAAoB,KAAK,SAAS,EAAE;gBACtC,OAAO,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC7D;YACD,0BAA0B;YAC1B,OAAO,EAAE,CAAC;SACX;IACH,CAAC;IACD,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,GAAG,oBAAoB,CAAC;AACjD,CAAC"}
|
@@ -22,7 +22,7 @@ export const shortcodePlugin = (md) => {
|
|
22
22
|
return true;
|
23
23
|
};
|
24
24
|
md.inline.ruler.after("escape", kShortcode, shortcode);
|
25
|
-
const renderShortcode = (tokens, idx
|
25
|
+
const renderShortcode = (tokens, idx) => {
|
26
26
|
const token = tokens[idx];
|
27
27
|
const content = token.content;
|
28
28
|
// insert shortcode braces and escape content's html entities
|
@@ -30,3 +30,4 @@ export const shortcodePlugin = (md) => {
|
|
30
30
|
};
|
31
31
|
md.renderer.rules[kShortcode] = renderShortcode;
|
32
32
|
};
|
33
|
+
//# sourceMappingURL=shortcodes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shortcodes.js","sourceRoot":"","sources":["../../src/plugins/shortcodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"shortcodes.js","sourceRoot":"","sources":["../../src/plugins/shortcodes.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAc,EAAE,EAAE;IAChD,MAAM,SAAS,GAAG,CAAC,KAAkB,EAAE,MAAe,EAAW,EAAE;QACjE,oBAAoB;QACpB,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,KAAK,EAAE;YACvD,OAAO,KAAK,CAAC;SACd;QACD,MAAM,iBAAiB,GAAG,MAAM,CAAC;QAEjC,kCAAkC;QAClC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACjE,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE;YACd,OAAO,KAAK,CAAC;SACd;QAED,MAAM,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;YACtD,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC;YAClB,KAAK,CAAC,OAAO,GAAG,gBAAgB,CAAC;SAClC;QACD,KAAK,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC,CAAA;IACD,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IAEvD,MAAM,eAAe,GAAG,CAAC,MAAe,EAAE,GAAW,EAAU,EAAE;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,6DAA6D;QAC7D,OAAO,2BAA2B,UAAU,CAAC,MAAM,OAAO,KAAK,CAAC,SAAS,CAAC;IAC5E,CAAC,CAAA;IAED,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,eAAe,CAAC;AAClD,CAAC,CAAA"}
|
package/lib/plugins/spans.d.ts
CHANGED
package/lib/plugins/spans.js
CHANGED
@@ -4,20 +4,20 @@
|
|
4
4
|
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
5
|
*
|
6
6
|
*/
|
7
|
-
export function spansPlugin(md
|
8
|
-
function span(state
|
9
|
-
|
7
|
+
export function spansPlugin(md) {
|
8
|
+
function span(state) {
|
9
|
+
const max = state.posMax;
|
10
10
|
if (state.src.charCodeAt(state.pos) !== 0x5B) {
|
11
11
|
// opening [
|
12
12
|
return false;
|
13
13
|
}
|
14
|
-
|
15
|
-
|
14
|
+
const labelStart = state.pos + 1;
|
15
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
|
16
16
|
if (labelEnd < 0) {
|
17
17
|
// parser failed to find closing ]
|
18
18
|
return false;
|
19
19
|
}
|
20
|
-
|
20
|
+
const pos = labelEnd + 1;
|
21
21
|
if (pos < max && state.src.charCodeAt(pos) === 0x7B /* { */) {
|
22
22
|
// probably found span
|
23
23
|
state.pos = labelStart;
|
@@ -36,3 +36,4 @@ export function spansPlugin(md, _options) {
|
|
36
36
|
;
|
37
37
|
md.inline.ruler.push('quarto-spans', span);
|
38
38
|
}
|
39
|
+
//# sourceMappingURL=spans.js.map
|
package/lib/plugins/spans.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"spans.js","sourceRoot":"","sources":["../../src/plugins/spans.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,UAAU,WAAW,CAAC,EAAc
|
1
|
+
{"version":3,"file":"spans.js","sourceRoot":"","sources":["../../src/plugins/spans.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,UAAU,WAAW,CAAC,EAAc;IACxC,SAAS,IAAI,CAAC,KAAkB;QAC9B,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAA;QAExB,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;YAC5C,YAAY;YACZ,OAAO,KAAK,CAAC;SACd;QAED,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;QACjC,MAAM,QAAQ,GAAK,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAE3E,IAAI,QAAQ,GAAG,CAAC,EAAE;YAChB,kCAAkC;YAClC,OAAO,KAAK,CAAC;SACd;QAED,MAAM,GAAG,GAAG,QAAQ,GAAG,CAAC,CAAC;QACzB,IAAI,GAAG,GAAG,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE;YAC3D,sBAAsB;YAEtB,KAAK,CAAC,GAAG,GAAG,UAAU,CAAC;YACvB,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC;YAExB,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;YACnC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;YAErC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;YAChB,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC;YACnB,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAAA,CAAC;IACF,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC"}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
5
|
*
|
6
6
|
*/
|
7
|
-
import { kTokInline, kTokParaClose, kTokParaOpen, kTokTableClose, kTokTableOpen, kTokText } from "
|
7
|
+
import { kTokInline, kTokParaClose, kTokParaOpen, kTokTableClose, kTokTableOpen, kTokText } from "./utils/tok";
|
8
8
|
const kTableCaptionRule = "quarto-table-captions";
|
9
9
|
export const tableCaptionPlugin = (md) => {
|
10
10
|
md.core.ruler.push(kTableCaptionRule, (state) => {
|
@@ -45,7 +45,7 @@ function resolveTableCaption(tokens, tblStartPos, tblEndPos) {
|
|
45
45
|
const maybeCaption = tokens[tblEndPos + 2];
|
46
46
|
const isText = maybeCaption.children !== null && maybeCaption.children.length > 0 && maybeCaption.children[0].type === kTokText;
|
47
47
|
const maybeCaptionText = isText ? maybeCaption.children[0].content : "";
|
48
|
-
const match = maybeCaptionText.match(/^:\s([
|
48
|
+
const match = maybeCaptionText.match(/^:\s([^{}]*)(?:\{.*\}){0,1}$/);
|
49
49
|
if (match && match[1]) {
|
50
50
|
// Carve out the existing tokens
|
51
51
|
const capTokens = tokens.splice(tblEndPos + 1, 3);
|
@@ -63,12 +63,7 @@ function resolveTableCaption(tokens, tblStartPos, tblEndPos) {
|
|
63
63
|
capTokens[2].tag = "caption";
|
64
64
|
tokens.splice(tblStartPos + 1, 0, ...capTokens);
|
65
65
|
}
|
66
|
-
else {
|
67
|
-
return undefined;
|
68
|
-
}
|
69
66
|
}
|
70
67
|
}
|
71
|
-
else {
|
72
|
-
return undefined;
|
73
|
-
}
|
74
68
|
}
|
69
|
+
//# sourceMappingURL=table-captions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table-captions.js","sourceRoot":"","sources":["../../src/plugins/table-captions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"table-captions.js","sourceRoot":"","sources":["../../src/plugins/table-captions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG/G,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAc,EAAE,EAAE;IAEnD,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAChB,iBAAiB,EACjB,CAAC,KAAK,EAAE,EAAE;QAER,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAe,EAAE,CAAC;QAEjC,4CAA4C;QAC5C,sEAAsE;QACtE,iEAAiE;QACjE,cAAc;QACd,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,IAAI,KAAK,aAAa,EAAE;gBAChC,SAAS,CAAC,IAAI,CAAC,CAAC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AK,CAAC,8BAA8B,CAAC,CAAC;YACrE,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;gBAErB,gCAAgC;gBAChC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBAElD,uDAAuD;gBACvD,cAAc;gBACd,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,eAAe,CAAC;gBACpC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC;gBAE7B,0DAA0D;gBAC1D,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBAC/C,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBAExB,mBAAmB;gBACnB,SAAS,CAAC,CAAC,CAAC,CAAC,QAAS,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAE7C,oBAAoB;gBACpB,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,eAAe,CAAC;gBACpC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC;gBAE7B,MAAM,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;aACjD;SACJ;KACF;AACH,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import Token from "markdown-it/lib/token";
|
2
|
+
export interface DecoratorOptions {
|
3
|
+
customClass?: string;
|
4
|
+
hide: {
|
5
|
+
id?: boolean;
|
6
|
+
classes?: boolean;
|
7
|
+
attributes?: boolean;
|
8
|
+
};
|
9
|
+
}
|
10
|
+
export declare const decorator: (contents: string[], customClass?: string) => string;
|
11
|
+
export declare const attributeDecorator: (token: Token, options?: DecoratorOptions) => string;
|
12
|
+
//# sourceMappingURL=html.d.ts.map
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
* html.ts
|
3
|
+
*
|
4
|
+
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
|
+
*
|
6
|
+
*/
|
7
|
+
import { readAttrValue } from "./markdownit";
|
8
|
+
export const decorator = (contents, customClass) => {
|
9
|
+
if (contents.length > 0) {
|
10
|
+
// Provide a decorator with the attributes
|
11
|
+
return `<div class="quarto-attribute-decorator${customClass ? ' ' + customClass : ""}">${contents.map(decoratorSpan).join("")}</div>`;
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
// There is no decorator - no attributes
|
15
|
+
return "";
|
16
|
+
}
|
17
|
+
};
|
18
|
+
export const attributeDecorator = (token, options) => {
|
19
|
+
var _a;
|
20
|
+
// id
|
21
|
+
const id = readAttrValue("id", token.attrs);
|
22
|
+
// classes
|
23
|
+
const clz = readAttrValue("class", token.attrs);
|
24
|
+
// other attributes
|
25
|
+
const otherAttrs = (_a = token.attrs) === null || _a === void 0 ? void 0 : _a.filter((attr) => { return attr[0] !== "id" && attr[0] !== "class"; });
|
26
|
+
// Create a decorator for the div
|
27
|
+
const contents = [];
|
28
|
+
if (id && !(options === null || options === void 0 ? void 0 : options.hide.id)) {
|
29
|
+
contents.push(`#${id}`);
|
30
|
+
}
|
31
|
+
if (clz && !(options === null || options === void 0 ? void 0 : options.hide.classes)) {
|
32
|
+
const clzStr = clz.split(" ").map((cls) => `.${cls}`).join(" ");
|
33
|
+
contents.push(clzStr);
|
34
|
+
}
|
35
|
+
if (otherAttrs && otherAttrs.length > 0 && !(options === null || options === void 0 ? void 0 : options.hide.attributes)) {
|
36
|
+
const otherAttrStr = otherAttrs === null || otherAttrs === void 0 ? void 0 : otherAttrs.map((attr) => {
|
37
|
+
return `${attr[0]}="${attr[1]}"`;
|
38
|
+
}).join(" ");
|
39
|
+
contents.push(otherAttrStr);
|
40
|
+
}
|
41
|
+
return decorator(contents, options === null || options === void 0 ? void 0 : options.customClass);
|
42
|
+
};
|
43
|
+
const decoratorSpan = (contents) => {
|
44
|
+
return `<span class="quarto-attribute-decorator-content">${contents}</span>`;
|
45
|
+
};
|
46
|
+
//# sourceMappingURL=html.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/plugins/utils/html.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAGF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAW7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAkB,EAAE,WAAoB,EAAE,EAAE;IACpE,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;QACvB,0CAA0C;QAC1C,OAAO,yCAAyC,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAA;KACtI;SAAM;QACL,wCAAwC;QACxC,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAY,EAAE,OAA0B,EAAE,EAAE;;IAC7E,KAAK;IACL,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE5C,UAAU;IACV,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEhD,mBAAmB;IACnB,MAAM,UAAU,GAAG,MAAA,KAAK,CAAC,KAAK,0CAAE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAA,CAAA,CAAC,CAAC,CAAC;IAEpG,iCAAiC;IACjC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAI,EAAE,IAAI,CAAC,CAAA,OA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ttrValue: (name: string, attrs: null | [
|
6
|
+
string,
|
7
|
+
string
|
8
|
+
][]) => string | undefined;
|
9
|
+
export declare const addClass: (clz: string, attrs: null | [
|
10
|
+
string,
|
11
|
+
string
|
12
|
+
][]) => [
|
13
|
+
string,
|
14
|
+
string
|
15
|
+
][];
|
16
|
+
//# sourceMappingURL=markdownit.d.ts.map
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
* markdownit.ts
|
3
|
+
*
|
4
|
+
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
|
+
*
|
6
|
+
*/
|
7
|
+
export const hasClass = (clz, attrs) => {
|
8
|
+
if (attrs === null) {
|
9
|
+
return false;
|
10
|
+
}
|
11
|
+
const classes = readAttrValue("class", attrs);
|
12
|
+
if (classes === null) {
|
13
|
+
return false;
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
return classes === null || classes === void 0 ? void 0 : classes.split(" ").includes(clz);
|
17
|
+
}
|
18
|
+
};
|
19
|
+
export const readAttrValue = (name, attrs) => {
|
20
|
+
if (attrs === null) {
|
21
|
+
return undefined;
|
22
|
+
}
|
23
|
+
const attr = attrs.find((attr) => { return attr[0] === name; });
|
24
|
+
return attr ? attr[1] : undefined;
|
25
|
+
};
|
26
|
+
export const addClass = (clz, attrs) => {
|
27
|
+
if (attrs === null) {
|
28
|
+
attrs = [];
|
29
|
+
attrs.push(["class", clz]);
|
30
|
+
return attrs;
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
const clzIdx = attrs.findIndex((attr) => attr[0] === "class");
|
34
|
+
if (clzIdx >= 0) {
|
35
|
+
const currentClz = attrs[clzIdx];
|
36
|
+
attrs[clzIdx] = ["class", `${currentClz[1]} ${clz}`.trim()];
|
37
|
+
return attrs;
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
attrs.push(["class", clz]);
|
41
|
+
return attrs;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
};
|
45
|
+
//# sourceMappingURL=markdownit.js.map
|
@@ -0,0 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,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC;QAC9D,IAAI,MAAM,IAAI,CAAC,EAAE;YACf,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;YAC5D,OAAO,KAAK,CAAC;SACd;aAAM;YACL,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;YAC1B,OAAO,KAAK,CAAC;SACd;KACF;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const kTokParaOpen = "paragraph_open";
|
2
|
+
export declare const kTokParaClose = "paragraph_close";
|
3
|
+
export declare const kTokInline = "inline";
|
4
|
+
export declare const kTokTableOpen = "table_open";
|
5
|
+
export declare const kTokTableClose = "table_close";
|
6
|
+
export declare const kTokText = "text";
|
7
|
+
export declare const kTokHeadingOpen = "heading_open";
|
8
|
+
//# sourceMappingURL=tok.d.ts.map
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/*
|
2
|
+
* tok.ts
|
3
|
+
*
|
4
|
+
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
|
+
*
|
6
|
+
*/
|
7
|
+
export const kTokParaOpen = "paragraph_open";
|
8
|
+
export const kTokParaClose = "paragraph_close";
|
9
|
+
export const kTokInline = "inline";
|
10
|
+
export const kTokTableOpen = "table_open";
|
11
|
+
export const kTokTableClose = "table_close";
|
12
|
+
export const kTokText = "text";
|
13
|
+
export const kTokHeadingOpen = "heading_open";
|
14
|
+
//# sourceMappingURL=tok.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tok.js","sourceRoot":"","sources":["../../../src/plugins/utils/tok.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAC7C,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AAEnC,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC;AAE5C,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE/B,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC"}
|
package/lib/plugins/yaml.d.ts
CHANGED
package/lib/plugins/yaml.js
CHANGED
@@ -14,12 +14,12 @@
|
|
14
14
|
*
|
15
15
|
*/
|
16
16
|
import * as yaml from "js-yaml";
|
17
|
-
import { decorator } from "
|
17
|
+
import { decorator } from "./utils/html";
|
18
18
|
// Typescript version of https://github.com/parksb/markdown-it-front-matter
|
19
19
|
// TODO: Rationalize this with quarto-core/src/markdownit-yaml.ts
|
20
20
|
// This is a copy with rendering added - the core tokenizing function is identical (or should be)
|
21
21
|
const kTokFrontMatter = 'front_matter';
|
22
|
-
export function
|
22
|
+
export function yamlPlugin(md, cb) {
|
23
23
|
const min_markers = 3, marker_str = "-", marker_char = marker_str.charCodeAt(0), marker_len = marker_str.length;
|
24
24
|
function frontMatter(state, startLine, endLine, silent) {
|
25
25
|
let pos, nextLine, start_content, auto_closed = false, start = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine];
|
@@ -116,7 +116,7 @@ export function markdownitFrontMatterPlugin(md, cb) {
|
|
116
116
|
// Add rendering
|
117
117
|
md.renderer.rules[kTokFrontMatter] = renderFrontMatter;
|
118
118
|
}
|
119
|
-
function renderFrontMatter(tokens, idx
|
119
|
+
function renderFrontMatter(tokens, idx) {
|
120
120
|
const token = tokens[idx];
|
121
121
|
// Parse the markup
|
122
122
|
const frontUnknown = parseFrontMatterStr(token.markup);
|
@@ -159,7 +159,7 @@ function renderFrontMatter(tokens, idx, options, env, self) {
|
|
159
159
|
titleLines.push(decor);
|
160
160
|
// yaml
|
161
161
|
const yamlDump = yaml.dump(frontMatter);
|
162
|
-
const otherYamlRendered = `<pre><code class="cm-s-jupyter language-yaml quarto-frontmatter">${yamlDump}</code></pre>`;
|
162
|
+
const otherYamlRendered = `<pre class="quarto-frontmatter-container"><code class="cm-s-jupyter language-yaml quarto-frontmatter">${yamlDump}</code></pre>`;
|
163
163
|
titleLines.push(otherYamlRendered);
|
164
164
|
}
|
165
165
|
return titleLines.join("\n");
|
@@ -288,6 +288,7 @@ function parseAuthor(author) {
|
|
288
288
|
affils.forEach((affilRaw) => {
|
289
289
|
if (typeof (affilRaw) === "string") {
|
290
290
|
affiliations.push(affilRaw);
|
291
|
+
// eslint-disable-next-line no-constant-condition
|
291
292
|
}
|
292
293
|
else if (typeof (affilRaw === "object")) {
|
293
294
|
const affilRecord = affilRaw;
|
@@ -307,3 +308,4 @@ function parseAuthor(author) {
|
|
307
308
|
}
|
308
309
|
return authors;
|
309
310
|
}
|
311
|
+
//# sourceMappingURL=yaml.js.map
|
package/lib/plugins/yaml.js.map
CHANGED
@@ -1 +1 @@
|
|
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,CAClB,KAAiB,EACjB,SAAiB,E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AC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBAC9B,iDAAiD;qBAChD;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"}
|
package/lib/providers/attrs.js
CHANGED
package/lib/providers/cites.js
CHANGED
package/lib/providers/deflist.js
CHANGED
package/lib/providers/divs.js
CHANGED
package/lib/providers/figures.js
CHANGED
package/lib/providers/math.js
CHANGED
package/lib/providers/mermaid.js
CHANGED
@@ -9,5 +9,8 @@ import { markdownItExtension } from './provider';
|
|
9
9
|
export const mermaid = markdownItExtension({ id: '@quarto/mermaid',
|
10
10
|
title: 'Mermaid',
|
11
11
|
plugin: async () => {
|
12
|
-
|
12
|
+
// Figure out whether this is dark mode
|
13
|
+
const isDark = document.body.getAttribute("data-jp-theme-light") === "false";
|
14
|
+
return [mermaidPlugin, { dark: isDark }];
|
13
15
|
} });
|
16
|
+
//# sourceMappingURL=mermaid.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mermaid.js","sourceRoot":"","sources":["../../src/providers/mermaid.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CACxC,EAAC,EAAE,EAAE,iBAAiB;IACtB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,aAAa,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"mermaid.js","sourceRoot":"","sources":["../../src/providers/mermaid.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CACxC,EAAC,EAAE,EAAE,iBAAiB;IACtB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,uCAAuC;QACvC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,KAAK,OAAO,CAAC;QAE7E,OAAO,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,CAAC,EAAC,CACH,CAAC"}
|
package/lib/providers/spans.js
CHANGED
package/lib/providers/sub.js
CHANGED
package/lib/providers/sup.js
CHANGED
package/lib/providers/yaml.js
CHANGED
@@ -4,12 +4,13 @@
|
|
4
4
|
* Copyright (C) 2020-2023 Posit Software, PBC
|
5
5
|
*
|
6
6
|
*/
|
7
|
-
import {
|
7
|
+
import { yamlPlugin } from "../plugins/yaml";
|
8
8
|
import { markdownItExtension } from "./provider";
|
9
9
|
export const yaml = markdownItExtension({
|
10
10
|
id: '@quarto/yaml',
|
11
11
|
title: 'Quarto Yaml',
|
12
12
|
plugin: async () => {
|
13
|
-
return [
|
13
|
+
return [yamlPlugin];
|
14
14
|
}
|
15
15
|
});
|
16
|
+
//# sourceMappingURL=yaml.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"yaml.js","sourceRoot":"","sources":["../../src/providers/yaml.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"yaml.js","sourceRoot":"","sources":["../../src/providers/yaml.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAC;IACtC,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF,CAAC,CAAC"}
|
package/lib/types.js
CHANGED
package/lib/utils/html.js
CHANGED
package/lib/utils/markdownit.js
CHANGED
package/lib/utils/tok.js
CHANGED
package/lib/widgets.js
CHANGED