textlane 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/actions/addon/resolve.d.ts +1 -0
- package/build/actions/addon/resolve.js +3 -2
- package/build/actions/libc/detect.d.ts +5 -0
- package/build/actions/libc/detect.js +11 -0
- package/build/actions/run/finish.d.ts +1 -1
- package/build/actions/run/finish.js +7 -3
- package/build/generated/extensions/mdast-util-definition-list.d.ts +32 -0
- package/build/generated/extensions/mdast-util-definition-list.js +3 -0
- package/build/generated/extensions/mdast-util-directive.d.ts +167 -0
- package/build/generated/extensions/mdast-util-directive.js +3 -0
- package/build/generated/extensions/mdast-util-math.d.ts +53 -0
- package/build/generated/extensions/mdast-util-math.js +3 -0
- package/build/generated/extensions/mdast-util-mdx-expression.d.ts +137 -0
- package/build/generated/extensions/mdast-util-mdx-expression.js +3 -0
- package/build/generated/extensions/mdast-util-mdx-jsx.d.ts +270 -0
- package/build/generated/extensions/mdast-util-mdx-jsx.js +3 -0
- package/build/generated/extensions/mdast-util-mdxjs-esm.d.ts +69 -0
- package/build/generated/extensions/mdast-util-mdxjs-esm.js +3 -0
- package/build/generated/extensions/mdast-util-to-hast.d.ts +69 -0
- package/build/generated/extensions/mdast-util-to-hast.js +3 -0
- package/build/generated/extensions/toml.d.ts +21 -0
- package/build/generated/extensions/toml.js +3 -0
- package/build/generated/html.d.ts +110 -3
- package/build/generated/html.js +25 -1
- package/build/generated/md.d.ts +57 -4
- package/build/generated/md.js +15 -3
- package/build/generated/nl.d.ts +1 -1
- package/build/generated/nl.js +1 -1
- package/build/generated/trees/estree.d.ts +1 -0
- package/build/generated/trees/estree.js +3 -0
- package/build/generated/trees/hast.d.ts +5 -0
- package/build/generated/trees/hast.js +3 -0
- package/build/generated/trees/mdast.d.ts +8 -0
- package/build/generated/trees/mdast.js +3 -0
- package/build/generated/trees/nlcst.d.ts +1 -0
- package/build/generated/trees/nlcst.js +3 -0
- package/build/generated/trees/unist.d.ts +1 -0
- package/build/generated/trees/unist.js +3 -0
- package/build/index.d.ts +10 -0
- package/build/index.js +6 -1
- package/build/models/addon.d.ts +23 -17
- package/build/models/addon.js +1 -1
- package/build/models/file.d.ts +3 -2
- package/build/models/file.js +1 -1
- package/build/models/processor.d.ts +1 -1
- package/build/models/processor.js +35 -19
- package/build/settings.d.ts +3 -1
- package/build/settings.js +14 -3
- package/package.json +10 -7
- package/skills/textlane-usage/SKILL.md +19 -3
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import type { Program } from 'estree-jsx';
|
|
2
|
+
import type { Data as HastData, ElementContent, Parent as HastParent } from 'hast';
|
|
3
|
+
import type { BlockContent, Data as MdastData, DefinitionContent, Parent as MdastParent, PhrasingContent } from 'mdast';
|
|
4
|
+
import type { Data, Node } from 'unist';
|
|
5
|
+
/**
|
|
6
|
+
* MDX JSX attribute value set to an expression.
|
|
7
|
+
*
|
|
8
|
+
* ```markdown
|
|
9
|
+
* > | <a b={c} />
|
|
10
|
+
* ^^^
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export interface MdxJsxAttributeValueExpression extends Node {
|
|
14
|
+
/**
|
|
15
|
+
* Node type.
|
|
16
|
+
*/
|
|
17
|
+
type: 'mdxJsxAttributeValueExpression';
|
|
18
|
+
/**
|
|
19
|
+
* Value.
|
|
20
|
+
*/
|
|
21
|
+
value: string;
|
|
22
|
+
/**
|
|
23
|
+
* Data associated with the mdast MDX JSX attribute value expression.
|
|
24
|
+
*/
|
|
25
|
+
data?: MdxJsxAttributeValueExpressionData | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Info associated with mdast MDX JSX attribute value expression nodes by the
|
|
29
|
+
* ecosystem.
|
|
30
|
+
*/
|
|
31
|
+
export interface MdxJsxAttributeValueExpressionData extends Data {
|
|
32
|
+
/**
|
|
33
|
+
* Program node from estree.
|
|
34
|
+
*/
|
|
35
|
+
estree?: Program | null | undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* MDX JSX attribute as an expression.
|
|
39
|
+
*
|
|
40
|
+
* ```markdown
|
|
41
|
+
* > | <a {...b} />
|
|
42
|
+
* ^^^^^^
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface MdxJsxExpressionAttribute extends Node {
|
|
46
|
+
/**
|
|
47
|
+
* Node type.
|
|
48
|
+
*/
|
|
49
|
+
type: 'mdxJsxExpressionAttribute';
|
|
50
|
+
/**
|
|
51
|
+
* Value.
|
|
52
|
+
*/
|
|
53
|
+
value: string;
|
|
54
|
+
/**
|
|
55
|
+
* Data associated with the mdast MDX JSX expression attributes.
|
|
56
|
+
*/
|
|
57
|
+
data?: MdxJsxExpressionAttributeData | undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Info associated with mdast MDX JSX expression attribute nodes by the
|
|
61
|
+
* ecosystem.
|
|
62
|
+
*/
|
|
63
|
+
export interface MdxJsxExpressionAttributeData extends Data {
|
|
64
|
+
/**
|
|
65
|
+
* Program node from estree.
|
|
66
|
+
*/
|
|
67
|
+
estree?: Program | null | undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* MDX JSX attribute with a key.
|
|
71
|
+
*
|
|
72
|
+
* ```markdown
|
|
73
|
+
* > | <a b="c" />
|
|
74
|
+
* ^^^^^
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export interface MdxJsxAttribute extends Node {
|
|
78
|
+
/**
|
|
79
|
+
* Node type.
|
|
80
|
+
*/
|
|
81
|
+
type: 'mdxJsxAttribute';
|
|
82
|
+
/**
|
|
83
|
+
* Attribute name.
|
|
84
|
+
*/
|
|
85
|
+
name: string;
|
|
86
|
+
/**
|
|
87
|
+
* Attribute value.
|
|
88
|
+
*/
|
|
89
|
+
value?: MdxJsxAttributeValueExpression | string | null | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Data associated with the mdast MDX JSX attribute.
|
|
92
|
+
*/
|
|
93
|
+
data?: MdxJsxAttributeData | undefined;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Info associated with mdast MDX JSX attribute nodes by the
|
|
97
|
+
* ecosystem.
|
|
98
|
+
*/
|
|
99
|
+
export interface MdxJsxAttributeData extends Data {
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* MDX JSX element node, occurring in flow (block).
|
|
103
|
+
*/
|
|
104
|
+
export interface MdxJsxFlowElement extends MdastParent {
|
|
105
|
+
/**
|
|
106
|
+
* Node type.
|
|
107
|
+
*/
|
|
108
|
+
type: 'mdxJsxFlowElement';
|
|
109
|
+
/**
|
|
110
|
+
* MDX JSX element name (`null` for fragments).
|
|
111
|
+
*/
|
|
112
|
+
name: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* MDX JSX element attributes.
|
|
115
|
+
*/
|
|
116
|
+
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
|
|
117
|
+
/**
|
|
118
|
+
* Content.
|
|
119
|
+
*/
|
|
120
|
+
children: Array<BlockContent | DefinitionContent>;
|
|
121
|
+
/**
|
|
122
|
+
* Data associated with the mdast MDX JSX elements (flow).
|
|
123
|
+
*/
|
|
124
|
+
data?: MdxJsxFlowElementData | undefined;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Info associated with mdast MDX JSX element (flow) nodes by the
|
|
128
|
+
* ecosystem.
|
|
129
|
+
*/
|
|
130
|
+
export interface MdxJsxFlowElementData extends MdastData {
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* MDX JSX element node, occurring in text (phrasing).
|
|
134
|
+
*/
|
|
135
|
+
export interface MdxJsxTextElement extends MdastParent {
|
|
136
|
+
/**
|
|
137
|
+
* Node type.
|
|
138
|
+
*/
|
|
139
|
+
type: 'mdxJsxTextElement';
|
|
140
|
+
/**
|
|
141
|
+
* MDX JSX element name (`null` for fragments).
|
|
142
|
+
*/
|
|
143
|
+
name: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* MDX JSX element attributes.
|
|
146
|
+
*/
|
|
147
|
+
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
|
|
148
|
+
/**
|
|
149
|
+
* Content.
|
|
150
|
+
*/
|
|
151
|
+
children: PhrasingContent[];
|
|
152
|
+
/**
|
|
153
|
+
* Data associated with the mdast MDX JSX elements (text).
|
|
154
|
+
*/
|
|
155
|
+
data?: MdxJsxTextElementData | undefined;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Info associated with mdast MDX JSX element (text) nodes by the
|
|
159
|
+
* ecosystem.
|
|
160
|
+
*/
|
|
161
|
+
export interface MdxJsxTextElementData extends MdastData {
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* MDX JSX element node, occurring in flow (block), for hast.
|
|
165
|
+
*/
|
|
166
|
+
export interface MdxJsxFlowElementHast extends HastParent {
|
|
167
|
+
/**
|
|
168
|
+
* Node type.
|
|
169
|
+
*/
|
|
170
|
+
type: 'mdxJsxFlowElement';
|
|
171
|
+
/**
|
|
172
|
+
* MDX JSX element name (`null` for fragments).
|
|
173
|
+
*/
|
|
174
|
+
name: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* MDX JSX element attributes.
|
|
177
|
+
*/
|
|
178
|
+
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
|
|
179
|
+
/**
|
|
180
|
+
* Content.
|
|
181
|
+
*/
|
|
182
|
+
children: ElementContent[];
|
|
183
|
+
/**
|
|
184
|
+
* Data associated with the hast MDX JSX elements (flow).
|
|
185
|
+
*/
|
|
186
|
+
data?: MdxJsxFlowElementHastData | undefined;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Info associated with hast MDX JSX element (flow) nodes by the
|
|
190
|
+
* ecosystem.
|
|
191
|
+
*/
|
|
192
|
+
export interface MdxJsxFlowElementHastData extends HastData {
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* MDX JSX element node, occurring in text (phrasing), for hast.
|
|
196
|
+
*/
|
|
197
|
+
export interface MdxJsxTextElementHast extends HastParent {
|
|
198
|
+
/**
|
|
199
|
+
* Node type.
|
|
200
|
+
*/
|
|
201
|
+
type: 'mdxJsxTextElement';
|
|
202
|
+
/**
|
|
203
|
+
* MDX JSX element name (`null` for fragments).
|
|
204
|
+
*/
|
|
205
|
+
name: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* MDX JSX element attributes.
|
|
208
|
+
*/
|
|
209
|
+
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
|
|
210
|
+
/**
|
|
211
|
+
* Content.
|
|
212
|
+
*/
|
|
213
|
+
children: ElementContent[];
|
|
214
|
+
/**
|
|
215
|
+
* Data associated with the hast MDX JSX elements (text).
|
|
216
|
+
*/
|
|
217
|
+
data?: MdxJsxTextElementHastData | undefined;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Info associated with hast MDX JSX element (text) nodes by the
|
|
221
|
+
* ecosystem.
|
|
222
|
+
*/
|
|
223
|
+
export interface MdxJsxTextElementHastData extends HastData {
|
|
224
|
+
}
|
|
225
|
+
declare module 'mdast' {
|
|
226
|
+
interface BlockContentMap {
|
|
227
|
+
/**
|
|
228
|
+
* MDX JSX element node, occurring in flow (block).
|
|
229
|
+
*/
|
|
230
|
+
mdxJsxFlowElement: MdxJsxFlowElement;
|
|
231
|
+
}
|
|
232
|
+
interface PhrasingContentMap {
|
|
233
|
+
/**
|
|
234
|
+
* MDX JSX element node, occurring in text (phrasing).
|
|
235
|
+
*/
|
|
236
|
+
mdxJsxTextElement: MdxJsxTextElement;
|
|
237
|
+
}
|
|
238
|
+
interface RootContentMap {
|
|
239
|
+
/**
|
|
240
|
+
* MDX JSX element node, occurring in flow (block).
|
|
241
|
+
*/
|
|
242
|
+
mdxJsxFlowElement: MdxJsxFlowElement;
|
|
243
|
+
/**
|
|
244
|
+
* MDX JSX element node, occurring in text (phrasing).
|
|
245
|
+
*/
|
|
246
|
+
mdxJsxTextElement: MdxJsxTextElement;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
declare module 'hast' {
|
|
250
|
+
interface ElementContentMap {
|
|
251
|
+
/**
|
|
252
|
+
* MDX JSX element node, occurring in text (phrasing).
|
|
253
|
+
*/
|
|
254
|
+
mdxJsxTextElement: MdxJsxTextElementHast;
|
|
255
|
+
/**
|
|
256
|
+
* MDX JSX element node, occurring in flow (block).
|
|
257
|
+
*/
|
|
258
|
+
mdxJsxFlowElement: MdxJsxFlowElementHast;
|
|
259
|
+
}
|
|
260
|
+
interface RootContentMap {
|
|
261
|
+
/**
|
|
262
|
+
* MDX JSX element node, occurring in text (phrasing).
|
|
263
|
+
*/
|
|
264
|
+
mdxJsxTextElement: MdxJsxTextElementHast;
|
|
265
|
+
/**
|
|
266
|
+
* MDX JSX element node, occurring in flow (block).
|
|
267
|
+
*/
|
|
268
|
+
mdxJsxFlowElement: MdxJsxFlowElementHast;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated by `pnpm generate:bindings` from the npm package's @types; do not edit.
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWRhc3QtdXRpbC1tZHgtanN4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vZ2VuZXJhdGVkL2V4dGVuc2lvbnMvbWRhc3QtdXRpbC1tZHgtanN4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9GQUFvRiIsInNvdXJjZXNDb250ZW50IjpbIi8vIEdlbmVyYXRlZCBieSBgcG5wbSBnZW5lcmF0ZTpiaW5kaW5nc2AgZnJvbSB0aGUgbnBtIHBhY2thZ2UncyBAdHlwZXM7IGRvIG5vdCBlZGl0LlxuXG5pbXBvcnQgdHlwZSB7UHJvZ3JhbX0gZnJvbSAnZXN0c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eEZsb3dFbGVtZW50SGFzdFxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Program } from 'estree-jsx';
|
|
2
|
+
import type { Data as HastData, Literal as HastLiteral } from 'hast';
|
|
3
|
+
import type { Data as MdastData, Literal as MdastLiteral } from 'mdast';
|
|
4
|
+
/**
|
|
5
|
+
* MDX ESM (import/export) node.
|
|
6
|
+
*/
|
|
7
|
+
export interface MdxjsEsm extends MdastLiteral {
|
|
8
|
+
/**
|
|
9
|
+
* Node type.
|
|
10
|
+
*/
|
|
11
|
+
type: 'mdxjsEsm';
|
|
12
|
+
/**
|
|
13
|
+
* Data associated with mdast MDX.js ESM.
|
|
14
|
+
*/
|
|
15
|
+
data?: MdxjsEsmData | undefined;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Info associated with mdast MDX.js ESM nodes by the ecosystem.
|
|
19
|
+
*/
|
|
20
|
+
export interface MdxjsEsmData extends MdastData {
|
|
21
|
+
/**
|
|
22
|
+
* Program node from estree.
|
|
23
|
+
*/
|
|
24
|
+
estree?: Program | null | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* MDX ESM (import/export) node (for hast).
|
|
28
|
+
*/
|
|
29
|
+
export interface MdxjsEsmHast extends HastLiteral {
|
|
30
|
+
/**
|
|
31
|
+
* Node type.
|
|
32
|
+
*/
|
|
33
|
+
type: 'mdxjsEsm';
|
|
34
|
+
/**
|
|
35
|
+
* Data associated with hast MDX.js ESM.
|
|
36
|
+
*/
|
|
37
|
+
data?: MdxjsEsmHastData | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Info associated with hast MDX.js ESM nodes by the ecosystem.
|
|
41
|
+
*/
|
|
42
|
+
export interface MdxjsEsmHastData extends HastData {
|
|
43
|
+
/**
|
|
44
|
+
* Program node from estree.
|
|
45
|
+
*/
|
|
46
|
+
estree?: Program | null | undefined;
|
|
47
|
+
}
|
|
48
|
+
declare module 'mdast' {
|
|
49
|
+
interface FrontmatterContentMap {
|
|
50
|
+
/**
|
|
51
|
+
* MDX ESM.
|
|
52
|
+
*/
|
|
53
|
+
mdxjsEsm: MdxjsEsm;
|
|
54
|
+
}
|
|
55
|
+
interface RootContentMap {
|
|
56
|
+
/**
|
|
57
|
+
* MDX ESM.
|
|
58
|
+
*/
|
|
59
|
+
mdxjsEsm: MdxjsEsm;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
declare module 'hast' {
|
|
63
|
+
interface RootContentMap {
|
|
64
|
+
/**
|
|
65
|
+
* MDX ESM.
|
|
66
|
+
*/
|
|
67
|
+
mdxjsEsm: MdxjsEsmHast;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated by `pnpm generate:bindings` from the npm package's @types; do not edit.
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWRhc3QtdXRpbC1tZHhqcy1lc20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9nZW5lcmF0ZWQvZXh0ZW5zaW9ucy9tZGFzdC11dGlsLW1keGpzLWVzbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvRkFBb0YiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBHZW5lcmF0ZWQgYnkgYHBucG0gZ2VuZXJhdGU6YmluZGluZ3NgIGZyb20gdGhlIG5wbSBwYWNrYWdlJ3MgQHR5cGVzOyBkbyBub3QgZWRpdC5cblxuaW1wb3J0IHR5cGUge1Byb2dyYW19IGZyb20gJ2VzdHJlZS1qc3gnXG5pbXBvcnQgdHlwZSB7RGF0YSBhcyBIYXN0RGF0YSwgTGl0ZXJhbCBhcyBIYXN0TGl0ZXJhbH0gZnJvbSAnaGFzdCdcbmltcG9ydCB0eXBlIHtEYXRhIGFzIE1kYXN0RGF0YSwgT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GhlIGVjb3N5c3RlbS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBNZHhqc0VzbUhhc3REYXRhIGV4dGVuZHMgSGFzdERhdGEge1xuICAvKipcbiAgICogUHJvZ3JhbSBub2RlIGZyb20gZXN0cmVlLlxuICAgKi9cbiAgZXN0cmVlPzogUHJvZ3JhbSB8IG51bGwgfCB1bmRlZmluZWRcbn1cbi8vIEFkZCBub2RlcyB0byBtZGFzdCBjb250ZW50LlxuZGVjbGFyZSBtb2R1bGUgJ21kYXN0JyB7XG4gIGludGVyZmFjZSBGcm9udG1hdHRlckNvbnRlbnRNYXAge1xuICAgIC8qKlxuICAgICAqIE1EWCBFU00uXG4gICAgICovXG4gICAgbWR4anNFc206IE1keGpzRXNtXG4gIH1cblxuICBpbnRlcmZhY2UgUm9vdENvbnRlbnRNYXAge1xuICAgIC8qKlxuICAgICAqIE1EWCBFU00uXG4gICAgICovXG4gICAgbWR4anNFc206IE1keGpzRXNtXG4gIH1cbn1cbi8vIEFkZCBub2RlcyB0byBoYXN0IGNvbnRlbnQuXG5kZWNsYXJlIG1vZHVsZSAnaGFzdCcge1xuICBpbnRlcmZhY2UgUm9vdENvbnRlbnRNYXAge1xuICAgIC8qKlxuICAgICAqIE1EWCBFU00uXG4gICAgICovXG4gICAgbWR4anNFc206IE1keGpzRXNtSGFzdFxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Data, ElementContent, Literal, Properties } from 'hast';
|
|
2
|
+
/**
|
|
3
|
+
* Raw string of HTML embedded into HTML AST.
|
|
4
|
+
*/
|
|
5
|
+
export interface Raw extends Literal {
|
|
6
|
+
/**
|
|
7
|
+
* Node type of raw.
|
|
8
|
+
*/
|
|
9
|
+
type: 'raw';
|
|
10
|
+
/**
|
|
11
|
+
* Data associated with the hast raw.
|
|
12
|
+
*/
|
|
13
|
+
data?: RawData | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Info associated with hast raw nodes by the ecosystem.
|
|
17
|
+
*/
|
|
18
|
+
export interface RawData extends Data {
|
|
19
|
+
}
|
|
20
|
+
declare module 'hast' {
|
|
21
|
+
interface ElementData {
|
|
22
|
+
/**
|
|
23
|
+
* Custom info relating to the node, if `<code>` in `<pre>`.
|
|
24
|
+
*
|
|
25
|
+
* Defined by `mdast-util-to-hast` (`remark-rehype`).
|
|
26
|
+
*/
|
|
27
|
+
meta?: string | null | undefined;
|
|
28
|
+
}
|
|
29
|
+
interface ElementContentMap {
|
|
30
|
+
/**
|
|
31
|
+
* Raw string of HTML embedded into HTML AST.
|
|
32
|
+
*/
|
|
33
|
+
raw: Raw;
|
|
34
|
+
}
|
|
35
|
+
interface RootContentMap {
|
|
36
|
+
/**
|
|
37
|
+
* Raw string of HTML embedded into HTML AST.
|
|
38
|
+
*/
|
|
39
|
+
raw: Raw;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
declare module 'mdast' {
|
|
43
|
+
interface Data {
|
|
44
|
+
/**
|
|
45
|
+
* Field supported by `mdast-util-to-hast` to signal that a node should
|
|
46
|
+
* result in something with these children.
|
|
47
|
+
*
|
|
48
|
+
* When this is defined, when a parent is created, these children will
|
|
49
|
+
* be used.
|
|
50
|
+
*/
|
|
51
|
+
hChildren?: ElementContent[] | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Field supported by `mdast-util-to-hast` to signal that a node should
|
|
54
|
+
* result in a particular element, instead of its default behavior.
|
|
55
|
+
*
|
|
56
|
+
* When this is defined, an element with the given tag name is created.
|
|
57
|
+
* For example, when setting `hName` to `'b'`, a `<b>` element is created.
|
|
58
|
+
*/
|
|
59
|
+
hName?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Field supported by `mdast-util-to-hast` to signal that a node should
|
|
62
|
+
* result in an element with these properties.
|
|
63
|
+
*
|
|
64
|
+
* When this is defined, when an element is created, these properties will
|
|
65
|
+
* be used.
|
|
66
|
+
*/
|
|
67
|
+
hProperties?: Properties | undefined;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated by `pnpm generate:bindings` from the npm package's @types; do not edit.
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWRhc3QtdXRpbC10by1oYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vZ2VuZXJhdGVkL2V4dGVuc2lvbnMvbWRhc3QtdXRpbC10by1oYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9GQUFvRiIsInNvdXJjZXNDb250ZW50IjpbIi8vIEdlbmVyYXRlZCBieSBgcG5wbSBnZW5lcmF0ZTpiaW5kaW5nc2AgZnJvbSB0aGUgbnBtIHBhY2thZ2UncyBAdHlwZXM7IGRvIG5vdCBlZGl0LlxuXG5pbXBvcnQgdHlwZSB7RGF0YSwgRWxlbWVudENvbnRlbnQsIExpdGVyYWwsIFByb3BlcnRpZXN9IGZyb20gJ2hhc3QnXG4vKipcbiAqIFJhdyBzdHJpbmcgb2YgSFRNTCBlbWJlZGRlZCBpbnRvIEhUTUwgQVNULlxuICovXG5leHBvcnQgaW50ZXJmYWNlIFJhdyBleHRlbmRzIExpdGVyYWwge1xuICAvKipcbiAgICogTm9kZSB0eXBlIG9mIHJhdy5cbiAgICovXG4gIHR5cGU6ICdyYXcnXG5cbiAgLyoqXG4gICAqIERhdGEgYXNzb2NpYXRlZCB3aXRoIHRoZSBoYXN0IHJhdy5cbiAgICovXG4gIGRhdGE/OiBSYXdEYXRhIHwgdW5kZWZpbmVkXG59XG4vKipcbiAqIEluZm8gYXNzb2NpYXRlZCB3aXRoIGhhc3QgcmF3IG5vZGVzIGJ5IHRoZSBlY29zeXN0ZW0uXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgUmF3RGF0YSBleHRlbmRzIERhdGEge31cbi8vIFJlZ2lzdGV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SB1c2VkLlxuICAgICAqL1xuICAgIGhDaGlsZHJlbj86IEVsZW1lbnRDb250ZW50W10gfCB1bmRlZmluZWRcblxuICAgIC8qKlxuICAgICAqIEZpZWxkIHN1cHBvcnRlZCBieSBgbWRhc3QtdXRpbC10by1oYXN0YCB0byBzaWduYWwgdGhhdCBhIG5vZGUgc2hvdWxkXG4gICAgICogcmVzdWx0IGluIGEgcGFydGljdWxhciBlbGVtZW50LCBpbnN0ZWFkIG9mIGl0cyBkZWZhdWx0IGJlaGF2aW9yLlxuICAgICAqXG4gICAgICogV2hlbiB0aGlzIGlzIGRlZmluZWQsIGFuIGVsZW1lbnQgd2l0aCB0aGUgZ2l2ZW4gdGFnIG5hbWUgaXMgY3JlYXRlZC5cbiAgICAgKiBGb3IgZXhhbXBsZSwgd2hlbiBzZXR0aW5nIGBoTmFtZWAgdG8gYCdiJ2AsIGEgYDxiPmAgZWxlbWVudCBpcyBjcmVhdGVkLlxuICAgICAqL1xuICAgIGhOYW1lPzogc3RyaW5nIHwgdW5kZWZpbmVkXG5cbiAgICAvKipcbiAgICAgKiBGaWVsZCBzdXBwb3J0ZWQgYnkgYG1kYXN0LXV0aWwtdG8taGFzdGAgdG8gc2lnbmFsIHRoYXQgYSBub2RlIHNob3VsZFxuICAgICAqIHJlc3VsdCBpbiBhbiBlbGVtZW50IHdpdGggdGhlc2UgcHJvcGVydGllcy5cbiAgICAgKlxuICAgICAqIFdoZW4gdGhpcyBpcyBkZWZpbmVkLCB3aGVuIGFuIGVsZW1lbnQgaXMgY3JlYXRlZCwgdGhlc2UgcHJvcGVydGllcyB3aWxsXG4gICAgICogYmUgdXNlZC5cbiAgICAgKi9cbiAgICBoUHJvcGVydGllcz86IFByb3BlcnRpZXMgfCB1bmRlZmluZWRcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Data, Literal } from "mdast";
|
|
2
|
+
/** TOML frontmatter, as remark-frontmatter parses it. */
|
|
3
|
+
export interface Toml extends Literal {
|
|
4
|
+
/** Node type. */
|
|
5
|
+
type: "toml";
|
|
6
|
+
/** Data associated with the mdast TOML node. */
|
|
7
|
+
data?: TomlData | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Info associated with mdast TOML nodes by the ecosystem. */
|
|
10
|
+
export interface TomlData extends Data {
|
|
11
|
+
}
|
|
12
|
+
declare module "mdast" {
|
|
13
|
+
interface FrontmatterContentMap {
|
|
14
|
+
/** TOML frontmatter. */
|
|
15
|
+
toml: Toml;
|
|
16
|
+
}
|
|
17
|
+
interface RootContentMap {
|
|
18
|
+
/** TOML frontmatter. */
|
|
19
|
+
toml: Toml;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated by `pnpm generate:bindings` from the npm package's @types; do not edit.
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9tbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2dlbmVyYXRlZC9leHRlbnNpb25zL3RvbWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0ZBQW9GIiwic291cmNlc0NvbnRlbnQiOlsiLy8gR2VuZXJhdGVkIGJ5IGBwbnBtIGdlbmVyYXRlOmJpbmRpbmdzYCBmcm9tIHRoZSBucG0gcGFja2FnZSdzIEB0eXBlczsgZG8gbm90IGVkaXQuXG5cbmltcG9ydCB0eXBlIHsgRGF0YSwgTGl0ZXJhbCB9IGZyb20gXCJtZGFzdFwiXG5cbi8qKiBUT01MIGZyb250bWF0dGVyLCBhcyByZW1hcmstZnJvbnRtYXR0ZXIgcGFyc2VzIGl0LiAqL1xuZXhwb3J0IGludGVyZmFjZSBUb21sIGV4dGVuZHMgTGl0ZXJhbCB7XG4gIC8qKiBOb2RlIHR5cGUuICovXG4gIHR5cGU6IFwidG9tbFwiXG4gIC8qKiBEYXRhIGFzc29jaWF0ZWQgd2l0aCB0aGUgbWRhc3QgVE9NTCBub2RlLiAqL1xuICBkYXRhPzogVG9tbERhdGEgfCB1bmRlZmluZWRcbn1cblxuLyoqIEluZm8gYXNzb2NpYXRlZCB3aXRoIG1kYXN0IFRPTUwgbm9kZXMgYnkgdGhlIGVjb3N5c3RlbS4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgVG9tbERhdGEgZXh0ZW5kcyBEYXRhIHt9XG5cbmRlY2xhcmUgbW9kdWxlIFwibWRhc3RcIiB7XG4gIGludGVyZmFjZSBGcm9udG1hdHRlckNvbnRlbnRNYXAge1xuICAgIC8qKiBUT01MIGZyb250bWF0dGVyLiAqL1xuICAgIHRvbWw6IFRvbWxcbiAgfVxuXG4gIGludGVyZmFjZSBSb290Q29udGVudE1hcCB7XG4gICAgLyoqIFRPTUwgZnJvbnRtYXR0ZXIuICovXG4gICAgdG9tbDogVG9tbFxuICB9XG59XG4iXX0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Root } from "hast";
|
|
1
|
+
import type { Root } from "./trees/hast.ts";
|
|
2
2
|
import type { Parser, Plugin } from "../models/plugin.ts";
|
|
3
3
|
/** `html.parse`: HTML into hast; options named as rehype-parse names them. */
|
|
4
4
|
export interface ParseOptions {
|
|
@@ -24,9 +24,18 @@ export interface FormatOptions {
|
|
|
24
24
|
indent?: Indent | null;
|
|
25
25
|
/** Indent the first level, usually `<html>`'s `head` and `body`; `true` when left out. */
|
|
26
26
|
indentInitial?: boolean | null;
|
|
27
|
+
/** Only collapse whitespace, as rehype-minify-whitespace does, adding no line endings or indentation; `{ newlines: true }` collapses a run holding a line ending to it. */
|
|
28
|
+
minify?: Minify | null;
|
|
27
29
|
}
|
|
28
30
|
/** One level of indentation. */
|
|
29
31
|
export type Indent = number | string;
|
|
32
|
+
/** `html.format`'s `minify`: on, or on with rehype-minify-whitespace's options. */
|
|
33
|
+
export type Minify = boolean | MinifyOptions;
|
|
34
|
+
/** rehype-minify-whitespace's options. */
|
|
35
|
+
export interface MinifyOptions {
|
|
36
|
+
/** Collapse a run of whitespace holding a line ending to a line ending, not a space. @default false */
|
|
37
|
+
newlines?: boolean;
|
|
38
|
+
}
|
|
30
39
|
/** `html.sanitize`: keep only what a schema allows; options: hast-util-sanitize's schema, where a field left out keeps the default schema's, which is GitHub's. */
|
|
31
40
|
export interface SanitizeOptions {
|
|
32
41
|
/** Keep comments. */
|
|
@@ -58,6 +67,69 @@ export type Primitive = boolean | number | string;
|
|
|
58
67
|
export interface SlugOptions {
|
|
59
68
|
/** Put before each id. @default "" */
|
|
60
69
|
prefix?: string;
|
|
70
|
+
/** Count the ids already in the document as taken, so a generated id never repeats one a link may point at. @default false */
|
|
71
|
+
reserveExisting?: boolean;
|
|
72
|
+
/** The heading ranks, 1 to 6, that get ids; every heading when left out. */
|
|
73
|
+
ranks?: number[] | null;
|
|
74
|
+
/** Link each heading with an `id` to itself, as rehype-autolink-headings does: `true`, or its options. */
|
|
75
|
+
autolink?: Autolink | null;
|
|
76
|
+
}
|
|
77
|
+
/** `html.slug`'s `autolink`: on, or on with rehype-autolink-headings' options. */
|
|
78
|
+
export type Autolink = boolean | AutolinkOptions;
|
|
79
|
+
/** rehype-autolink-headings' options, JSON values only. */
|
|
80
|
+
export interface AutolinkOptions {
|
|
81
|
+
/** Where the link goes: in the heading first or last, around its content, or before or after it. */
|
|
82
|
+
behavior?: AutolinkBehavior;
|
|
83
|
+
/** The link's properties, as hast names them; `ariaHidden` and `tabIndex: -1` for `prepend` and `append` when left out. */
|
|
84
|
+
properties?: Record<string, unknown> | null;
|
|
85
|
+
/** hast content of the link, one node or a list; `<span class="icon icon-link">` when left out, except for `wrap`, which appends it to the heading's content. */
|
|
86
|
+
content?: unknown;
|
|
87
|
+
/** A hast element wrapping the heading and its link, for `before` and `after`. */
|
|
88
|
+
group?: unknown;
|
|
89
|
+
/** Properties set on each linked heading. */
|
|
90
|
+
headingProperties?: Record<string, unknown> | null;
|
|
91
|
+
/** The tag names of the headings to link; every heading when left out. */
|
|
92
|
+
test?: TagNames | null;
|
|
93
|
+
}
|
|
94
|
+
/** Where `autolink` puts each heading's link. */
|
|
95
|
+
export type AutolinkBehavior = "prepend" | "append" | "wrap" | "before" | "after";
|
|
96
|
+
/** One tag name or several. */
|
|
97
|
+
export type TagNames = string | string[];
|
|
98
|
+
/** `html.math`: `$…$` and `$$…$$` in text into the elements `html.katex` renders, read by pandoc's rule so prices stay text: an opening `$` is followed by a non-space, a closing one follows a non-space and is not followed by a digit; `\$` is a dollar sign. */
|
|
99
|
+
export interface MathOptions {
|
|
100
|
+
/** Let one dollar, `$a$`, form math, as well as two. @default true */
|
|
101
|
+
singleDollarTextMath?: boolean;
|
|
102
|
+
/** Elements, by tag name, whose text is left alone; links, code, scripts, form text, `math` and `svg` when left out. */
|
|
103
|
+
ignore?: string[] | null;
|
|
104
|
+
/** Attributes, such as `data-literal`, whose elements' text is left alone. @default [] */
|
|
105
|
+
ignoreAttributes?: string[];
|
|
106
|
+
}
|
|
107
|
+
/** `html.linkify`: bare URLs and email addresses in text into links, as GitHub's literal autolinks do: an `http`, `https` or `ftp` URL as it is, a `www.` one under `https://`, an email under `mailto:`; any other scheme stays text. */
|
|
108
|
+
export interface LinkifyOptions {
|
|
109
|
+
/** Elements, by tag name, whose text is left alone; links, code, scripts, form text, `math` and `svg` when left out. */
|
|
110
|
+
ignore?: string[] | null;
|
|
111
|
+
/** Attributes, such as `data-literal`, whose elements' text is left alone. @default [] */
|
|
112
|
+
ignoreAttributes?: string[];
|
|
113
|
+
}
|
|
114
|
+
/** `html.gemoji`: gemoji shortcodes in text, `:smile:`, into emoji, as `md.gemoji` does in Markdown. */
|
|
115
|
+
export interface GemojiOptions {
|
|
116
|
+
/** Wrap each emoji in `<span role="img" aria-label="…">`, labelled with its name. @default false */
|
|
117
|
+
accessible?: boolean;
|
|
118
|
+
/** Elements, by tag name, whose text is left alone; links, code, scripts, form text, `math` and `svg` when left out. */
|
|
119
|
+
ignore?: string[] | null;
|
|
120
|
+
/** Attributes, such as `data-literal`, whose elements' text is left alone. @default [] */
|
|
121
|
+
ignoreAttributes?: string[];
|
|
122
|
+
}
|
|
123
|
+
/** `html.pathRewrite`: the URLs of a document's attributes as a site serves them, as `md.pathRewrite` does for Markdown: relative ones resolved against the file's path and made root-relative, every root-relative one under `base`, and links to a page's file turned into its URL. */
|
|
124
|
+
export interface PathRewriteOptions {
|
|
125
|
+
/** The directory URLs count from, as the file's path spells it; the path's own starting point when left out. */
|
|
126
|
+
root?: string | null;
|
|
127
|
+
/** The URL the site is served at, such as `/docs`, put before every root-relative URL once. */
|
|
128
|
+
base?: string | null;
|
|
129
|
+
/** Files, relative to `root`, to the URL of their page, such as `{"guide.html": "/guide/"}`; an `href` naming one takes it. @default {} */
|
|
130
|
+
pages?: Record<string, string>;
|
|
131
|
+
/** The attributes whose URLs are rewritten; `href`, `src`, `srcset` and `poster` when left out. */
|
|
132
|
+
attributes?: string[] | null;
|
|
61
133
|
}
|
|
62
134
|
/** `html.externalLinks`: `rel`, `target` and more on links to other sites, as rehype-external-links adds them; options named as it names them, JSON values only. */
|
|
63
135
|
export interface ExternalLinksOptions {
|
|
@@ -78,8 +150,14 @@ export interface ExternalLinksOptions {
|
|
|
78
150
|
export type Tokens = string | string[];
|
|
79
151
|
/** `html.extractToc`: the headings, nested by rank, as the file's `data.toc`, as @stefanprobst/rehype-extract-toc stores them. */
|
|
80
152
|
export interface ExtractTocOptions {
|
|
81
|
-
/** Attributes, such as `data-toc-hidden`, that keep a heading out of the table of contents; what would nest under it nests under the heading before. @default [] */
|
|
153
|
+
/** Attributes, such as `data-toc-hidden`, that keep a heading out of the table of contents, or `name=value`, such as `data-toc=false`, for one value of it; what would nest under it nests under the heading before. @default [] */
|
|
82
154
|
skip?: string[];
|
|
155
|
+
/** Elements, by tag name, whose headings stay out, such as a card's title. @default [] */
|
|
156
|
+
skipInside?: string[];
|
|
157
|
+
/** The shallowest heading rank listed, 1 to 6. */
|
|
158
|
+
minDepth?: number | null;
|
|
159
|
+
/** The deepest heading rank listed, 1 to 6. */
|
|
160
|
+
maxDepth?: number | null;
|
|
83
161
|
}
|
|
84
162
|
/** `html.highlight`: code blocks colored as Shiki colors them, natively by giallo; options named as @shikijs/rehype names them. */
|
|
85
163
|
export interface HighlightOptions {
|
|
@@ -103,11 +181,21 @@ export interface HighlightOptions {
|
|
|
103
181
|
transformers?: HighlightTransformer[];
|
|
104
182
|
/** Lines at least this long, in UTF-16 units, are left one plain token as Shiki's own option leaves them; 2,000 when left out, where Shiki has no limit, since a grammar's time grows with the square of a line's length. `0` lifts it. */
|
|
105
183
|
tokenizeMaxLineLength?: number | null;
|
|
184
|
+
/** Attributes of a block's `<code>` or `<pre>` listing lines, `2,4-5`, each to the classes those lines get, or to `{line, pre}`, the second for the `<pre>`: `{"data-focus": {"line": "focused", "pre": "has-focused"}}`. */
|
|
185
|
+
lineAttributes?: Record<string, LineMark>;
|
|
186
|
+
/** The attribute of a block's `<code>` or `<pre>` listing words, separated by commas, marked at every place as `metaWordHighlight` marks a meta's `/word/`. */
|
|
187
|
+
wordAttribute?: string | null;
|
|
188
|
+
/** The attribute of a block's `<code>` or `<pre>` that numbers its lines as `renderLineNumber` does, from its value, or 1 when it is empty. */
|
|
189
|
+
lineNumberAttribute?: string | null;
|
|
190
|
+
/** Leave a block alone when its code holds elements, such as `<mark>`, which highlighting would flatten into text. @default false */
|
|
191
|
+
skipElements?: boolean;
|
|
192
|
+
/** Keep the properties of a block's `<pre>` and `<code>`, such as `data-title`, on the ones Shiki makes, merging classes; Shiki's own win where both set one. @default false */
|
|
193
|
+
keepProperties?: boolean;
|
|
106
194
|
}
|
|
107
195
|
/** A replacement color, or a theme's own replacements. */
|
|
108
196
|
export type ColorReplacement = string | Record<string, string>;
|
|
109
197
|
/** How inline code names its language. */
|
|
110
|
-
export type InlineCode = "tailing-curly-colon";
|
|
198
|
+
export type InlineCode = "tailing-curly-colon" | "class";
|
|
111
199
|
/** A transformer of @shikijs/transformers: its name alone, or its name and options. */
|
|
112
200
|
export type HighlightTransformer = TransformerName | ConfiguredTransformer;
|
|
113
201
|
/** The transformers `html.highlight` runs natively. */
|
|
@@ -148,6 +236,11 @@ export type ConfiguredTransformer = {
|
|
|
148
236
|
};
|
|
149
237
|
/** Class names: a list, or one string of them separated by white space. */
|
|
150
238
|
export type Classes = string | string[];
|
|
239
|
+
/** The classes the lines a `lineAttributes` attribute lists get, and maybe its `<pre>`. */
|
|
240
|
+
export type LineMark = Classes | {
|
|
241
|
+
line: Classes;
|
|
242
|
+
pre?: Classes | null;
|
|
243
|
+
};
|
|
151
244
|
/** `html.katex`: math rendered as rehype-katex renders it, natively by katex-rs; options named as KaTeX names them. */
|
|
152
245
|
export interface KatexOptions {
|
|
153
246
|
/** The markup to write, both HTML and MathML by default. */
|
|
@@ -174,6 +267,8 @@ export interface KatexOptions {
|
|
|
174
267
|
maxExpand?: number | null;
|
|
175
268
|
/** Let definitions such as `\def` last past the formula they are in. @default false */
|
|
176
269
|
globalGroup?: boolean;
|
|
270
|
+
/** Elements, by tag name, that hold math besides the classed ones, such as `my-math`; one is display math when it has a `display` attribute other than `inline`. @default [] */
|
|
271
|
+
tagNames?: string[];
|
|
177
272
|
}
|
|
178
273
|
/** The markup KaTeX writes. */
|
|
179
274
|
export type KatexOutput = "html" | "mathml" | "htmlAndMathml";
|
|
@@ -193,6 +288,10 @@ export interface ToMarkdownOptions {
|
|
|
193
288
|
unchecked?: string | null;
|
|
194
289
|
/** The quotes `<q>` uses, an opening and closing character each, alternating by how deep it nests; `"` by default. */
|
|
195
290
|
quotes?: string[] | null;
|
|
291
|
+
/** Turn MathML `<math>` holding a TeX annotation, as `html.katex` writes it, into math nodes, `$…$` once `md.math` writes them, display math for `display="block"`, and drop KaTeX's visual `katex-html` copy. @default false */
|
|
292
|
+
math?: boolean;
|
|
293
|
+
/** Attributes of a code block's `<pre>` or `<code>` written into its meta, each to the key it takes there: `{"data-title": "title"}` makes `title="a.js"`. @default {} */
|
|
294
|
+
codeMeta?: Record<string, string>;
|
|
196
295
|
}
|
|
197
296
|
/** `html.stringify`: hast into HTML; options named as hast-util-to-html names them. */
|
|
198
297
|
export interface StringifyOptions {
|
|
@@ -243,6 +342,14 @@ export declare function format(options?: FormatOptions): Plugin<"html.format", F
|
|
|
243
342
|
export declare function sanitize(options?: SanitizeOptions): Plugin<"html.sanitize", SanitizeOptions>;
|
|
244
343
|
/** The `html.slug` plugin. */
|
|
245
344
|
export declare function slug(options?: SlugOptions): Plugin<"html.slug", SlugOptions>;
|
|
345
|
+
/** The `html.math` plugin. */
|
|
346
|
+
export declare function math(options?: MathOptions): Plugin<"html.math", MathOptions>;
|
|
347
|
+
/** The `html.linkify` plugin. */
|
|
348
|
+
export declare function linkify(options?: LinkifyOptions): Plugin<"html.linkify", LinkifyOptions>;
|
|
349
|
+
/** The `html.gemoji` plugin. */
|
|
350
|
+
export declare function gemoji(options?: GemojiOptions): Plugin<"html.gemoji", GemojiOptions>;
|
|
351
|
+
/** The `html.pathRewrite` plugin. */
|
|
352
|
+
export declare function pathRewrite(options?: PathRewriteOptions): Plugin<"html.pathRewrite", PathRewriteOptions>;
|
|
246
353
|
/** The `html.externalLinks` plugin. */
|
|
247
354
|
export declare function externalLinks(options?: ExternalLinksOptions): Plugin<"html.externalLinks", ExternalLinksOptions>;
|
|
248
355
|
/** The `html.unwrapImages` plugin. */
|