@quarto/jupyterlab-quarto 0.1.44 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/README.md +48 -15
- package/lib/__tests__/jupyterlab_quarto.spec.d.ts +3 -0
- package/lib/__tests__/jupyterlab_quarto.spec.js +9 -0
- package/lib/ast/ast.d.ts +2 -0
- package/lib/ast/ast.js +40 -0
- package/lib/const.d.ts +4 -0
- package/lib/const.js +11 -0
- package/lib/hooks/codemirror.d.ts +5 -0
- package/lib/hooks/codemirror.js +77 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +61 -0
- package/lib/manager.d.ts +8 -0
- package/lib/manager.js +115 -0
- package/lib/plugins/callouts.d.ts +2 -0
- package/lib/plugins/callouts.js +210 -0
- package/lib/plugins/cites.d.ts +2 -0
- package/lib/plugins/cites.js +166 -0
- package/lib/plugins/decorator.d.ts +2 -0
- package/lib/plugins/decorator.js +58 -0
- package/lib/plugins/divs.d.ts +5 -0
- package/lib/plugins/divs.js +111 -0
- package/lib/plugins/figure-divs.d.ts +2 -0
- package/lib/plugins/figure-divs.js +54 -0
- package/lib/plugins/figures.d.ts +16 -0
- package/lib/plugins/figures.js +98 -0
- package/lib/plugins/gridtables/common/gridtables/GetCells.d.ts +7 -0
- package/lib/plugins/gridtables/common/gridtables/GetCells.js +43 -0
- package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.d.ts +7 -0
- package/lib/plugins/gridtables/common/gridtables/GetColumnWidths.js +22 -0
- package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.d.ts +7 -0
- package/lib/plugins/gridtables/common/markdown-it/ColumnAlignments.js +12 -0
- package/lib/plugins/gridtables/common/markdown-it/EmitTable.d.ts +4 -0
- package/lib/plugins/gridtables/common/markdown-it/EmitTable.js +64 -0
- package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.d.ts +8 -0
- package/lib/plugins/gridtables/common/markdown-it/GetCharCodeAtStartOfLine.js +17 -0
- package/lib/plugins/gridtables/common/markdown-it/GetLine.d.ts +2 -0
- package/lib/plugins/gridtables/common/markdown-it/GetLine.js +9 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTable.d.ts +3 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTable.js +152 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.d.ts +12 -0
- package/lib/plugins/gridtables/common/markdown-it/ParseTableResult.js +17 -0
- package/lib/plugins/gridtables/index.d.ts +1 -0
- package/lib/plugins/gridtables/index.js +10 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/IState.d.ts +10 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/IState.js +5 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/IToken.d.ts +6 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/IToken.js +5 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.d.ts +3 -0
- package/lib/plugins/gridtables/interfaces/markdown-it/TRuleFunction.js +5 -0
- package/lib/plugins/gridtables/rules/gridtable.d.ts +3 -0
- package/lib/plugins/gridtables/rules/gridtable.js +25 -0
- package/lib/plugins/index.d.ts +15 -0
- package/lib/plugins/index.js +21 -0
- package/lib/plugins/math.d.ts +6 -0
- package/lib/plugins/math.js +179 -0
- package/lib/plugins/mermaid/index.d.ts +4 -0
- package/lib/plugins/mermaid/index.js +60 -0
- package/lib/plugins/shortcodes.d.ts +3 -0
- package/lib/plugins/shortcodes.js +32 -0
- package/lib/plugins/spans.d.ts +2 -0
- package/lib/plugins/spans.js +37 -0
- package/lib/plugins/table-captions.d.ts +2 -0
- package/lib/plugins/table-captions.js +72 -0
- package/lib/plugins/utils/html.d.ts +11 -0
- package/lib/plugins/utils/html.js +50 -0
- package/lib/plugins/utils/markdownit.d.ts +15 -0
- package/lib/plugins/utils/markdownit.js +46 -0
- package/lib/plugins/utils/tok.d.ts +7 -0
- package/lib/plugins/utils/tok.js +13 -0
- package/lib/plugins/yaml.d.ts +2 -0
- package/lib/plugins/yaml.js +330 -0
- package/lib/providers/attrs.d.ts +1 -0
- package/lib/providers/attrs.js +15 -0
- package/lib/providers/callouts.d.ts +1 -0
- package/lib/providers/callouts.js +15 -0
- package/lib/providers/cites.d.ts +1 -0
- package/lib/providers/cites.js +15 -0
- package/lib/providers/decorator.d.ts +1 -0
- package/lib/providers/decorator.js +15 -0
- package/lib/providers/deflist.d.ts +1 -0
- package/lib/providers/deflist.js +15 -0
- package/lib/providers/divs.d.ts +1 -0
- package/lib/providers/divs.js +27 -0
- package/lib/providers/figure-divs.d.ts +1 -0
- package/lib/providers/figure-divs.js +15 -0
- package/lib/providers/figures.d.ts +1 -0
- package/lib/providers/figures.js +15 -0
- package/lib/providers/footnotes.d.ts +1 -0
- package/lib/providers/footnotes.js +15 -0
- package/lib/providers/gridtables.d.ts +1 -0
- package/lib/providers/gridtables.js +15 -0
- package/lib/providers/math.d.ts +1 -0
- package/lib/providers/math.js +104 -0
- package/lib/providers/mermaid.d.ts +1 -0
- package/lib/providers/mermaid.js +17 -0
- package/lib/providers/provider.d.ts +3 -0
- package/lib/providers/provider.js +12 -0
- package/lib/providers/shortcodes.d.ts +1 -0
- package/lib/providers/shortcodes.js +15 -0
- package/lib/providers/spans.d.ts +1 -0
- package/lib/providers/spans.js +15 -0
- package/lib/providers/sub.d.ts +1 -0
- package/lib/providers/sub.js +15 -0
- package/lib/providers/sup.d.ts +1 -0
- package/lib/providers/sup.js +15 -0
- package/lib/providers/table-captions.d.ts +1 -0
- package/lib/providers/table-captions.js +15 -0
- package/lib/providers/tasklists.d.ts +1 -0
- package/lib/providers/tasklists.js +15 -0
- package/lib/providers/yaml.d.ts +1 -0
- package/lib/providers/yaml.js +15 -0
- package/lib/types.d.ts +43 -0
- package/lib/types.js +1 -0
- package/lib/widgets.d.ts +14 -0
- package/lib/widgets.js +57 -0
- package/package.json +105 -39
- package/style/base.css +34 -33
- package/style/index.css +1 -1
- package/schema/plugin.json +0 -8
- package/src/@types/markdown-it-deflist.d.ts +0 -10
- package/src/@types/markdown-it-footnote.d.ts +0 -10
- package/src/@types/markdown-it-gridtables.d.ts +0 -10
- package/src/@types/markdown-it-implicit-figures.d.ts +0 -10
- package/src/@types/markdown-it-sub.d.ts +0 -10
- package/src/@types/markdown-it-sup.d.ts +0 -10
- package/src/@types/markdown-it-task-lists.d.ts +0 -10
package/style/base.css
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
}
|
17
17
|
|
18
18
|
.quarto-meta-padded {
|
19
|
-
padding-top: .4em;
|
19
|
+
padding-top: 0.4em;
|
20
20
|
}
|
21
21
|
|
22
22
|
.quarto-meta p.quarto-meta-title {
|
@@ -33,15 +33,15 @@
|
|
33
33
|
text-decoration: none;
|
34
34
|
}
|
35
35
|
|
36
|
-
.quarto-orcid i
|
36
|
+
.quarto-orcid i::before {
|
37
37
|
margin-left: 0.25em;
|
38
38
|
height: 1rem;
|
39
39
|
width: 1rem;
|
40
40
|
display: inline-block;
|
41
|
-
content:
|
41
|
+
content: '';
|
42
42
|
background-repeat: no-repeat;
|
43
43
|
background-size: 1rem 1rem;
|
44
|
-
background-image: url(
|
44
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAALVBMVEUAAACmzjmmzjmmzjmmzjmmzjn////0+ebj8MHe7bXT55y82mus0UWmzjmSwCmNJ4LqAAAABnRSTlMAIGC/z+8mlFLTAAAAaElEQVR42k2OsQmAMBRET3CAFG5gbWMv6CBpRT44knM4hU3ESl6bLs5gEUW7x3GPO0k1tJJUAQxS4S3B4VRiCejVcCU2gjosjtO2CyymdSHDOT/A/Eu63NnVZCuoBIBehQc43Df63rgBoFJNFnlCBV4AAAAASUVORK5CYII=');
|
45
45
|
}
|
46
46
|
|
47
47
|
.quarto-frontmatter {
|
@@ -58,7 +58,7 @@
|
|
58
58
|
.quarto-div {
|
59
59
|
border: solid 1px var(--jp-border-color0);
|
60
60
|
border-radius: 3px;
|
61
|
-
background-color: #
|
61
|
+
background-color: #eee3;
|
62
62
|
padding: 1em;
|
63
63
|
margin-bottom: 1em;
|
64
64
|
}
|
@@ -100,7 +100,7 @@
|
|
100
100
|
}
|
101
101
|
|
102
102
|
/* Cites and Xrefs */
|
103
|
-
.jp-RenderedHTMLCommon :not(pre) > code.cite {
|
103
|
+
.jp-RenderedHTMLCommon :not(pre) > code.cite {
|
104
104
|
color: var(--jp-content-link-color);
|
105
105
|
padding-left: 1px;
|
106
106
|
padding-right: 1px;
|
@@ -109,7 +109,7 @@
|
|
109
109
|
/* Code Blocks */
|
110
110
|
.jp-RenderedHTMLCommon pre,
|
111
111
|
.jp-RenderedHTMLCommon > pre {
|
112
|
-
margin-left: .1em;
|
112
|
+
margin-left: 0.1em;
|
113
113
|
margin-right: 0;
|
114
114
|
padding: 0.5em;
|
115
115
|
border: solid 1px var(--jp-border-color0);
|
@@ -123,19 +123,20 @@
|
|
123
123
|
}
|
124
124
|
|
125
125
|
/* Callouts */
|
126
|
+
|
126
127
|
/* TODO: Need to automate ingesting this */
|
127
128
|
|
128
129
|
.callout {
|
129
130
|
margin-top: 1em;
|
130
|
-
margin-bottom: 1em;
|
131
|
-
border-radius: .25rem;
|
131
|
+
margin-bottom: 1em;
|
132
|
+
border-radius: 0.25rem;
|
132
133
|
}
|
133
134
|
|
134
135
|
.callout-header {
|
135
136
|
display: flex;
|
136
137
|
align-content: center;
|
137
138
|
padding: 0.35em 0.75em;
|
138
|
-
opacity:
|
139
|
+
opacity: 0.8;
|
139
140
|
}
|
140
141
|
|
141
142
|
.callout-title-container {
|
@@ -143,21 +144,21 @@
|
|
143
144
|
font-weight: 600;
|
144
145
|
}
|
145
146
|
|
146
|
-
body[data-jp-theme-light=
|
147
|
+
body[data-jp-theme-light='false'] .callout-title-container {
|
147
148
|
color: var(--jp-input-background);
|
148
149
|
}
|
149
150
|
|
150
|
-
.callout.callout-style-default
|
151
|
+
.callout.callout-style-default div.callout-title {
|
151
152
|
border-bottom: none;
|
152
153
|
font-weight: 600;
|
153
|
-
opacity: 85
|
154
|
+
opacity: 0.85;
|
154
155
|
font-size: 0.9rem;
|
155
156
|
padding-left: 0.5em;
|
156
157
|
padding-right: 0.5em;
|
157
158
|
}
|
158
159
|
|
159
160
|
.callout.callout-style-default {
|
160
|
-
border-left: solid #acacac .3rem;
|
161
|
+
border-left: solid #acacac 0.3rem;
|
161
162
|
border-right: solid 1px silver;
|
162
163
|
border-top: solid 1px silver;
|
163
164
|
border-bottom: solid 1px silver;
|
@@ -167,6 +168,7 @@ body[data-jp-theme-light="false"] .callout-title-container {
|
|
167
168
|
padding: 0.75em;
|
168
169
|
flex-grow: 1;
|
169
170
|
}
|
171
|
+
|
170
172
|
.callout .callout-body-container p:last-of-type {
|
171
173
|
margin-bottom: 0;
|
172
174
|
}
|
@@ -181,21 +183,9 @@ body[data-jp-theme-light="false"] .callout-title-container {
|
|
181
183
|
padding-right: 0.5em;
|
182
184
|
}
|
183
185
|
|
184
|
-
.callout.callout-style-default .callout-icon::before {
|
185
|
-
height: 1rem;
|
186
|
-
width: 1rem;
|
187
|
-
display: inline-block;
|
188
|
-
content: "";
|
189
|
-
background-repeat: no-repeat;
|
190
|
-
background-size: 1rem 1rem;
|
191
|
-
margin-bottom: -3px;
|
192
|
-
padding-right: .4rem;
|
193
|
-
}
|
194
|
-
|
195
186
|
.callout-title {
|
196
|
-
display: flex
|
187
|
+
display: flex;
|
197
188
|
}
|
198
|
-
|
199
189
|
|
200
190
|
/* Callout Types */
|
201
191
|
|
@@ -208,7 +198,7 @@ div.callout-note .callout-icon::before {
|
|
208
198
|
}
|
209
199
|
|
210
200
|
div.callout-note .callout-header {
|
211
|
-
background-color: #dae6fb
|
201
|
+
background-color: #dae6fb;
|
212
202
|
}
|
213
203
|
|
214
204
|
div.callout-important {
|
@@ -220,7 +210,7 @@ div.callout-important .callout-icon::before {
|
|
220
210
|
}
|
221
211
|
|
222
212
|
div.callout-important .callout-header {
|
223
|
-
background-color: #f7dddc
|
213
|
+
background-color: #f7dddc;
|
224
214
|
}
|
225
215
|
|
226
216
|
div.callout-warning {
|
@@ -232,7 +222,7 @@ div.callout-warning .callout-icon::before {
|
|
232
222
|
}
|
233
223
|
|
234
224
|
div.callout-warning .callout-header {
|
235
|
-
background-color: #fcefdc
|
225
|
+
background-color: #fcefdc;
|
236
226
|
}
|
237
227
|
|
238
228
|
div.callout-tip {
|
@@ -244,7 +234,7 @@ div.callout-tip .callout-icon::before {
|
|
244
234
|
}
|
245
235
|
|
246
236
|
div.callout-tip .callout-header {
|
247
|
-
background-color: #ccf1e3
|
237
|
+
background-color: #ccf1e3;
|
248
238
|
}
|
249
239
|
|
250
240
|
div.callout-caution {
|
@@ -256,7 +246,18 @@ div.callout-caution .callout-icon::before {
|
|
256
246
|
}
|
257
247
|
|
258
248
|
div.callout-caution .callout-header {
|
259
|
-
background-color: #ffe5d0
|
249
|
+
background-color: #ffe5d0;
|
250
|
+
}
|
251
|
+
|
252
|
+
.callout.callout-style-default .callout-icon::before {
|
253
|
+
height: 1rem;
|
254
|
+
width: 1rem;
|
255
|
+
display: inline-block;
|
256
|
+
content: '';
|
257
|
+
background-repeat: no-repeat;
|
258
|
+
background-size: 1rem 1rem;
|
259
|
+
margin-bottom: -3px;
|
260
|
+
padding-right: 0.4rem;
|
260
261
|
}
|
261
262
|
|
262
263
|
/* Shortcodes */
|
@@ -266,6 +267,6 @@ span.shortcode {
|
|
266
267
|
line-height: var(--jp-code-line-height);
|
267
268
|
color: var(--jp-content-link-color);
|
268
269
|
background-color: var(--jp-layout-color2);
|
269
|
-
padding: 1px
|
270
|
+
padding: 1px;
|
270
271
|
white-space: pre-wrap;
|
271
272
|
}
|
package/style/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import
|
1
|
+
@import 'base.css';
|
package/schema/plugin.json
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
declare module 'markdown-it-deflist' {
|
2
|
-
import MarkdownIt = require('markdown-it');
|
3
|
-
|
4
|
-
namespace markdownItDefList {
|
5
|
-
function deflist_plugin(md: MarkdownIt): void;
|
6
|
-
}
|
7
|
-
|
8
|
-
const MarkdownItDefList: typeof markdownItDefList.deflist_plugin;
|
9
|
-
export = MarkdownItDefList;
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare module 'markdown-it-footnote' {
|
2
|
-
import MarkdownIt = require('markdown-it');
|
3
|
-
|
4
|
-
namespace markdownItFootnote {
|
5
|
-
function footnote_plugin(md: MarkdownIt): void;
|
6
|
-
}
|
7
|
-
|
8
|
-
const MarkdownItFootnote: typeof markdownItFootnote.footnote_plugin;
|
9
|
-
export = MarkdownItFootnote;
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare module 'markdown-it-gridtables' {
|
2
|
-
import MarkdownIt = require('markdown-it');
|
3
|
-
|
4
|
-
namespace markdownItGridTables {
|
5
|
-
function gridtables_plugin(md: MarkdownIt): void;
|
6
|
-
}
|
7
|
-
|
8
|
-
const MarkdownGridTables: typeof markdownItGridTables.gridtables_plugin;
|
9
|
-
export = MarkdownGridTables;
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare module 'markdown-it-implicit-figures' {
|
2
|
-
import MarkdownIt = require('markdown-it');
|
3
|
-
|
4
|
-
namespace markdownItImplicitFigures {
|
5
|
-
function implicit_figure_plugin(md: MarkdownIt): void;
|
6
|
-
}
|
7
|
-
|
8
|
-
const MarkdownItImplicitFigures: typeof markdownItImplicitFigures.implicit_figure_plugin;
|
9
|
-
export = MarkdownItImplicitFigures;
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare module 'markdown-it-task-lists' {
|
2
|
-
import MarkdownIt = require('markdown-it');
|
3
|
-
|
4
|
-
namespace markdownItTaskLists {
|
5
|
-
function tasklists_plugin(md: MarkdownIt): void;
|
6
|
-
}
|
7
|
-
|
8
|
-
const MarkdownItTaskLists: typeof markdownItTaskLists.tasklists_plugin;
|
9
|
-
export = MarkdownItTaskLists;
|
10
|
-
}
|