@shikijs/core 1.10.1 → 1.10.2
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/dist/chunk-tokens.d.mts +2 -344
- package/dist/index.d.mts +6 -4
- package/dist/index.mjs +1 -1
- package/dist/textmate.d.mts +1 -0
- package/dist/types.d.mts +3 -2
- package/package.json +4 -1
package/dist/chunk-tokens.d.mts
CHANGED
|
@@ -1,347 +1,5 @@
|
|
|
1
1
|
import { L as LoadWasmOptions } from './chunk-index.mjs';
|
|
2
|
-
|
|
3
|
-
// ## Interfaces
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Info associated with nodes by the ecosystem.
|
|
7
|
-
*
|
|
8
|
-
* This space is guaranteed to never be specified by unist or specifications
|
|
9
|
-
* implementing unist.
|
|
10
|
-
* But you can use it in utilities and plugins to store data.
|
|
11
|
-
*
|
|
12
|
-
* This type can be augmented to register custom data.
|
|
13
|
-
* For example:
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* declare module 'unist' {
|
|
17
|
-
* interface Data {
|
|
18
|
-
* // `someNode.data.myId` is typed as `number | undefined`
|
|
19
|
-
* myId?: number | undefined
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
interface Data$1 {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* One place in a source file.
|
|
28
|
-
*/
|
|
29
|
-
interface Point {
|
|
30
|
-
/**
|
|
31
|
-
* Line in a source file (1-indexed integer).
|
|
32
|
-
*/
|
|
33
|
-
line: number;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Column in a source file (1-indexed integer).
|
|
37
|
-
*/
|
|
38
|
-
column: number;
|
|
39
|
-
/**
|
|
40
|
-
* Character in a source file (0-indexed integer).
|
|
41
|
-
*/
|
|
42
|
-
offset?: number | undefined;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Position of a node in a source document.
|
|
47
|
-
*
|
|
48
|
-
* A position is a range between two points.
|
|
49
|
-
*/
|
|
50
|
-
interface Position$1 {
|
|
51
|
-
/**
|
|
52
|
-
* Place of the first character of the parsed source region.
|
|
53
|
-
*/
|
|
54
|
-
start: Point;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Place of the first character after the parsed source region.
|
|
58
|
-
*/
|
|
59
|
-
end: Point;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Abstract unist node.
|
|
64
|
-
*
|
|
65
|
-
* The syntactic unit in unist syntax trees are called nodes.
|
|
66
|
-
*
|
|
67
|
-
* This interface is supposed to be extended.
|
|
68
|
-
* If you can use {@link Literal} or {@link Parent}, you should.
|
|
69
|
-
* But for example in markdown, a `thematicBreak` (`***`), is neither literal
|
|
70
|
-
* nor parent, but still a node.
|
|
71
|
-
*/
|
|
72
|
-
interface Node$1 {
|
|
73
|
-
/**
|
|
74
|
-
* Node type.
|
|
75
|
-
*/
|
|
76
|
-
type: string;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Info from the ecosystem.
|
|
80
|
-
*/
|
|
81
|
-
data?: Data$1 | undefined;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Position of a node in a source document.
|
|
85
|
-
*
|
|
86
|
-
* Nodes that are generated (not in the original source document) must not
|
|
87
|
-
* have a position.
|
|
88
|
-
*/
|
|
89
|
-
position?: Position$1 | undefined;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// ## Interfaces
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Info associated with hast nodes by the ecosystem.
|
|
96
|
-
*
|
|
97
|
-
* This space is guaranteed to never be specified by unist or hast.
|
|
98
|
-
* But you can use it in utilities and plugins to store data.
|
|
99
|
-
*
|
|
100
|
-
* This type can be augmented to register custom data.
|
|
101
|
-
* For example:
|
|
102
|
-
*
|
|
103
|
-
* ```ts
|
|
104
|
-
* declare module 'hast' {
|
|
105
|
-
* interface Data {
|
|
106
|
-
* // `someNode.data.myId` is typed as `number | undefined`
|
|
107
|
-
* myId?: number | undefined
|
|
108
|
-
* }
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
interface Data extends Data$1 {}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Info associated with an element.
|
|
116
|
-
*/
|
|
117
|
-
interface Properties {
|
|
118
|
-
[PropertyName: string]: boolean | number | string | null | undefined | Array<string | number>;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// ## Content maps
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Union of registered hast nodes that can occur in {@link Element}.
|
|
125
|
-
*
|
|
126
|
-
* To register mote custom hast nodes, add them to {@link ElementContentMap}.
|
|
127
|
-
* They will be automatically added here.
|
|
128
|
-
*/
|
|
129
|
-
type ElementContent = ElementContentMap[keyof ElementContentMap];
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Registry of all hast nodes that can occur as children of {@link Element}.
|
|
133
|
-
*
|
|
134
|
-
* For a union of all {@link Element} children, see {@link ElementContent}.
|
|
135
|
-
*/
|
|
136
|
-
interface ElementContentMap {
|
|
137
|
-
comment: Comment;
|
|
138
|
-
element: Element;
|
|
139
|
-
text: Text;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Union of registered hast nodes that can occur in {@link Root}.
|
|
144
|
-
*
|
|
145
|
-
* To register custom hast nodes, add them to {@link RootContentMap}.
|
|
146
|
-
* They will be automatically added here.
|
|
147
|
-
*/
|
|
148
|
-
type RootContent = RootContentMap[keyof RootContentMap];
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Registry of all hast nodes that can occur as children of {@link Root}.
|
|
152
|
-
*
|
|
153
|
-
* > 👉 **Note**: {@link Root} does not need to be an entire document.
|
|
154
|
-
* > it can also be a fragment.
|
|
155
|
-
*
|
|
156
|
-
* For a union of all {@link Root} children, see {@link RootContent}.
|
|
157
|
-
*/
|
|
158
|
-
interface RootContentMap {
|
|
159
|
-
comment: Comment;
|
|
160
|
-
doctype: Doctype;
|
|
161
|
-
element: Element;
|
|
162
|
-
text: Text;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Union of registered hast nodes.
|
|
167
|
-
*
|
|
168
|
-
* To register custom hast nodes, add them to {@link RootContentMap} and other
|
|
169
|
-
* places where relevant.
|
|
170
|
-
* They will be automatically added here.
|
|
171
|
-
*/
|
|
172
|
-
type Nodes = Root | RootContent;
|
|
173
|
-
|
|
174
|
-
// ## Abstract nodes
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Abstract hast node.
|
|
178
|
-
*
|
|
179
|
-
* This interface is supposed to be extended.
|
|
180
|
-
* If you can use {@link Literal} or {@link Parent}, you should.
|
|
181
|
-
* But for example in HTML, a `Doctype` is neither literal nor parent, but
|
|
182
|
-
* still a node.
|
|
183
|
-
*
|
|
184
|
-
* To register custom hast nodes, add them to {@link RootContentMap} and other
|
|
185
|
-
* places where relevant (such as {@link ElementContentMap}).
|
|
186
|
-
*
|
|
187
|
-
* For a union of all registered hast nodes, see {@link Nodes}.
|
|
188
|
-
*/
|
|
189
|
-
interface Node extends Node$1 {
|
|
190
|
-
/**
|
|
191
|
-
* Info from the ecosystem.
|
|
192
|
-
*/
|
|
193
|
-
data?: Data | undefined;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Abstract hast node that contains the smallest possible value.
|
|
198
|
-
*
|
|
199
|
-
* This interface is supposed to be extended if you make custom hast nodes.
|
|
200
|
-
*
|
|
201
|
-
* For a union of all registered hast literals, see {@link Literals}.
|
|
202
|
-
*/
|
|
203
|
-
interface Literal extends Node {
|
|
204
|
-
/**
|
|
205
|
-
* Plain-text value.
|
|
206
|
-
*/
|
|
207
|
-
value: string;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Abstract hast node that contains other hast nodes (*children*).
|
|
212
|
-
*
|
|
213
|
-
* This interface is supposed to be extended if you make custom hast nodes.
|
|
214
|
-
*
|
|
215
|
-
* For a union of all registered hast parents, see {@link Parents}.
|
|
216
|
-
*/
|
|
217
|
-
interface Parent extends Node {
|
|
218
|
-
/**
|
|
219
|
-
* List of children.
|
|
220
|
-
*/
|
|
221
|
-
children: RootContent[];
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// ## Concrete nodes
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* HTML comment.
|
|
228
|
-
*/
|
|
229
|
-
interface Comment extends Literal {
|
|
230
|
-
/**
|
|
231
|
-
* Node type of HTML comments in hast.
|
|
232
|
-
*/
|
|
233
|
-
type: "comment";
|
|
234
|
-
/**
|
|
235
|
-
* Data associated with the comment.
|
|
236
|
-
*/
|
|
237
|
-
data?: CommentData | undefined;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Info associated with hast comments by the ecosystem.
|
|
242
|
-
*/
|
|
243
|
-
interface CommentData extends Data {}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* HTML document type.
|
|
247
|
-
*/
|
|
248
|
-
interface Doctype extends Node$1 {
|
|
249
|
-
/**
|
|
250
|
-
* Node type of HTML document types in hast.
|
|
251
|
-
*/
|
|
252
|
-
type: "doctype";
|
|
253
|
-
/**
|
|
254
|
-
* Data associated with the doctype.
|
|
255
|
-
*/
|
|
256
|
-
data?: DoctypeData | undefined;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Info associated with hast doctypes by the ecosystem.
|
|
261
|
-
*/
|
|
262
|
-
interface DoctypeData extends Data {}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* HTML element.
|
|
266
|
-
*/
|
|
267
|
-
interface Element extends Parent {
|
|
268
|
-
/**
|
|
269
|
-
* Node type of elements.
|
|
270
|
-
*/
|
|
271
|
-
type: "element";
|
|
272
|
-
/**
|
|
273
|
-
* Tag name (such as `'body'`) of the element.
|
|
274
|
-
*/
|
|
275
|
-
tagName: string;
|
|
276
|
-
/**
|
|
277
|
-
* Info associated with the element.
|
|
278
|
-
*/
|
|
279
|
-
properties: Properties;
|
|
280
|
-
/**
|
|
281
|
-
* Children of element.
|
|
282
|
-
*/
|
|
283
|
-
children: ElementContent[];
|
|
284
|
-
/**
|
|
285
|
-
* When the `tagName` field is `'template'`, a `content` field can be
|
|
286
|
-
* present.
|
|
287
|
-
*/
|
|
288
|
-
content?: Root | undefined;
|
|
289
|
-
/**
|
|
290
|
-
* Data associated with the element.
|
|
291
|
-
*/
|
|
292
|
-
data?: ElementData | undefined;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Info associated with hast elements by the ecosystem.
|
|
297
|
-
*/
|
|
298
|
-
interface ElementData extends Data {}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Document fragment or a whole document.
|
|
302
|
-
*
|
|
303
|
-
* Should be used as the root of a tree and must not be used as a child.
|
|
304
|
-
*
|
|
305
|
-
* Can also be used as the value for the content field on a `'template'` element.
|
|
306
|
-
*/
|
|
307
|
-
interface Root extends Parent {
|
|
308
|
-
/**
|
|
309
|
-
* Node type of hast root.
|
|
310
|
-
*/
|
|
311
|
-
type: "root";
|
|
312
|
-
/**
|
|
313
|
-
* Children of root.
|
|
314
|
-
*/
|
|
315
|
-
children: RootContent[];
|
|
316
|
-
/**
|
|
317
|
-
* Data associated with the hast root.
|
|
318
|
-
*/
|
|
319
|
-
data?: RootData | undefined;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Info associated with hast root nodes by the ecosystem.
|
|
324
|
-
*/
|
|
325
|
-
interface RootData extends Data {}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* HTML character data (plain text).
|
|
329
|
-
*/
|
|
330
|
-
interface Text extends Literal {
|
|
331
|
-
/**
|
|
332
|
-
* Node type of HTML character data (plain text) in hast.
|
|
333
|
-
*/
|
|
334
|
-
type: "text";
|
|
335
|
-
/**
|
|
336
|
-
* Data associated with the text.
|
|
337
|
-
*/
|
|
338
|
-
data?: TextData | undefined;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Info associated with hast texts by the ecosystem.
|
|
343
|
-
*/
|
|
344
|
-
interface TextData extends Data {}
|
|
2
|
+
import { Root, Element } from 'hast';
|
|
345
3
|
|
|
346
4
|
/**
|
|
347
5
|
* A union of given const enum values.
|
|
@@ -1356,4 +1014,4 @@ declare enum FontStyle {
|
|
|
1356
1014
|
Underline = 4
|
|
1357
1015
|
}
|
|
1358
1016
|
|
|
1359
|
-
export { type
|
|
1017
|
+
export { type ThemedTokenScopeExplanation as $, type AnsiLanguage as A, type BundledHighlighterOptions as B, type CodeToHastOptions as C, type ResolveBundleKey as D, type LanguageRegistration as E, FontStyle as F, GrammarState as G, type HighlighterCoreOptions as H, INITIAL as I, type BundledLanguageInfo as J, type DynamicImportLanguageRegistration as K, type LanguageInput as L, type MaybeArray as M, type CodeOptionsSingleTheme as N, type CodeOptionsMultipleThemes as O, type PlainTextLanguage as P, type CodeOptionsThemes as Q, Registry as R, type StateStack as S, Theme as T, type CodeToHastOptionsCommon as U, type CodeOptionsMeta as V, type CodeToHastRenderOptionsCommon as W, type ThemeRegistrationRaw as X, type ThemeRegistration as Y, type DynamicImportThemeRegistration as Z, type BundledThemeInfo as _, type IRawTheme as a, type ThemedTokenExplanation as a0, type TokenBase as a1, type TransformerOptions as a2, type ShikiTransformerContextMeta as a3, type ShikiTransformerContext as a4, type Awaitable as a5, type MaybeGetter as a6, type MaybeModule as a7, type StringLiteralUnion as a8, type DecorationOptions as a9, type DecorationItem as aa, type ResolvedDecorationItem as ab, type DecorationTransformType as ac, type Offset as ad, type OffsetOrPosition as ae, type ResolvedPosition as af, type IRawGrammar as b, type IGrammar as c, type IGrammarConfiguration as d, type IOnigLib as e, type RegistryOptions as f, type IRawThemeSetting as g, type ThemeInput as h, type CodeToTokensOptions as i, type TokensResult as j, type RequireKeys as k, type CodeToTokensBaseOptions as l, type ThemedToken as m, type CodeToTokensWithThemesOptions as n, type ThemedTokenWithVariants as o, type SpecialLanguage as p, type SpecialTheme as q, type ThemeRegistrationAny as r, type TokenizeWithThemeOptions as s, type TokenStyles as t, type Position as u, type ThemeRegistrationResolved as v, type ShikiTransformerContextCommon as w, type CodeToHastRenderOptions as x, type ShikiTransformerContextSource as y, type ShikiTransformer as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { HighlighterCore, HighlighterGeneric, ShikiInternal } from './types.mjs';
|
|
2
2
|
export { Grammar } from './types.mjs';
|
|
3
|
-
import { H as HighlighterCoreOptions, B as BundledHighlighterOptions, L as LanguageInput, h as ThemeInput, C as CodeToHastOptions, i as
|
|
4
|
-
export {
|
|
3
|
+
import { H as HighlighterCoreOptions, B as BundledHighlighterOptions, L as LanguageInput, h as ThemeInput, C as CodeToHastOptions, i as CodeToTokensOptions, j as TokensResult, k as RequireKeys, l as CodeToTokensBaseOptions, m as ThemedToken, n as CodeToTokensWithThemesOptions, o as ThemedTokenWithVariants, G as GrammarState, M as MaybeArray, P as PlainTextLanguage, p as SpecialLanguage, q as SpecialTheme, r as ThemeRegistrationAny, s as TokenizeWithThemeOptions, t as TokenStyles, u as Position, c as IGrammar, v as ThemeRegistrationResolved, w as ShikiTransformerContextCommon, x as CodeToHastRenderOptions, y as ShikiTransformerContextSource, z as ShikiTransformer } from './chunk-tokens.mjs';
|
|
4
|
+
export { A as AnsiLanguage, a5 as Awaitable, J as BundledLanguageInfo, _ as BundledThemeInfo, V as CodeOptionsMeta, O as CodeOptionsMultipleThemes, N as CodeOptionsSingleTheme, Q as CodeOptionsThemes, U as CodeToHastOptionsCommon, W as CodeToHastRenderOptionsCommon, aa as DecorationItem, a9 as DecorationOptions, ac as DecorationTransformType, K as DynamicImportLanguageRegistration, Z as DynamicImportThemeRegistration, F as FontStyle, E as LanguageRegistration, a6 as MaybeGetter, a7 as MaybeModule, ad as Offset, ae as OffsetOrPosition, b as RawGrammar, a as RawTheme, g as RawThemeSetting, D as ResolveBundleKey, ab as ResolvedDecorationItem, af as ResolvedPosition, a4 as ShikiTransformerContext, a3 as ShikiTransformerContextMeta, a8 as StringLiteralUnion, Y as ThemeRegistration, X as ThemeRegistrationRaw, a0 as ThemedTokenExplanation, $ as ThemedTokenScopeExplanation, a1 as TokenBase, a2 as TransformerOptions } from './chunk-tokens.mjs';
|
|
5
|
+
import * as hast from 'hast';
|
|
6
|
+
import { Root, Element } from 'hast';
|
|
5
7
|
import { L as LoadWasmOptions } from './chunk-index.mjs';
|
|
6
8
|
export { W as WebAssemblyInstantiator, l as loadWasm } from './chunk-index.mjs';
|
|
7
9
|
|
|
@@ -222,8 +224,8 @@ type Options$1 = Options$2
|
|
|
222
224
|
* Serialized HTML.
|
|
223
225
|
*/
|
|
224
226
|
declare function toHtml(tree: Array<RootContent> | Nodes, options?: Options | null | undefined): string;
|
|
225
|
-
type Nodes = Nodes
|
|
226
|
-
type RootContent = RootContent
|
|
227
|
+
type Nodes = hast.Nodes;
|
|
228
|
+
type RootContent = hast.RootContent;
|
|
227
229
|
type StringifyEntitiesOptions = Options$1;
|
|
228
230
|
type CharacterReferences = Omit<StringifyEntitiesOptions, 'attribute' | 'escapeOnly' | 'subset'>;
|
|
229
231
|
/**
|
package/dist/index.mjs
CHANGED
package/dist/textmate.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { F as FontStyle } from './chunk-tokens.mjs';
|
|
2
2
|
export { c as IGrammar, d as IGrammarConfiguration, I as INITIAL, e as IOnigLib, b as IRawGrammar, a as IRawTheme, g as IRawThemeSetting, R as Registry, f as RegistryOptions, S as StateStack, T as Theme } from './chunk-tokens.mjs';
|
|
3
3
|
import './chunk-index.mjs';
|
|
4
|
+
import 'hast';
|
|
4
5
|
|
|
5
6
|
declare const enum TemporaryStandardTokenType {
|
|
6
7
|
Other = 0,
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Root } from 'hast';
|
|
2
|
+
import { c as IGrammar, h as ThemeInput, q as SpecialTheme, L as LanguageInput, p as SpecialLanguage, r as ThemeRegistrationAny, v as ThemeRegistrationResolved, E as LanguageRegistration, C as CodeToHastOptions, D as ResolveBundleKey, i as CodeToTokensOptions, j as TokensResult, l as CodeToTokensBaseOptions, m as ThemedToken, n as CodeToTokensWithThemesOptions, o as ThemedTokenWithVariants, G as GrammarState } from './chunk-tokens.mjs';
|
|
3
|
+
export { A as AnsiLanguage, a5 as Awaitable, B as BundledHighlighterOptions, J as BundledLanguageInfo, _ as BundledThemeInfo, V as CodeOptionsMeta, O as CodeOptionsMultipleThemes, N as CodeOptionsSingleTheme, Q as CodeOptionsThemes, U as CodeToHastOptionsCommon, x as CodeToHastRenderOptions, W as CodeToHastRenderOptionsCommon, aa as DecorationItem, a9 as DecorationOptions, ac as DecorationTransformType, K as DynamicImportLanguageRegistration, Z as DynamicImportThemeRegistration, F as FontStyle, H as HighlighterCoreOptions, M as MaybeArray, a6 as MaybeGetter, a7 as MaybeModule, ad as Offset, ae as OffsetOrPosition, P as PlainTextLanguage, u as Position, b as RawGrammar, a as RawTheme, g as RawThemeSetting, k as RequireKeys, ab as ResolvedDecorationItem, af as ResolvedPosition, z as ShikiTransformer, a4 as ShikiTransformerContext, w as ShikiTransformerContextCommon, a3 as ShikiTransformerContextMeta, y as ShikiTransformerContextSource, a8 as StringLiteralUnion, Y as ThemeRegistration, X as ThemeRegistrationRaw, a0 as ThemedTokenExplanation, $ as ThemedTokenScopeExplanation, a1 as TokenBase, t as TokenStyles, s as TokenizeWithThemeOptions, a2 as TransformerOptions } from './chunk-tokens.mjs';
|
|
3
4
|
export { W as WebAssemblyInstantiator } from './chunk-index.mjs';
|
|
4
5
|
|
|
5
6
|
interface Grammar extends IGrammar {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.2",
|
|
5
5
|
"description": "Core of Shiki",
|
|
6
6
|
"author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
"files": [
|
|
60
60
|
"dist"
|
|
61
61
|
],
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@types/hast": "^3.0.4"
|
|
64
|
+
},
|
|
62
65
|
"devDependencies": {
|
|
63
66
|
"hast-util-to-html": "^9.0.1",
|
|
64
67
|
"vscode-oniguruma": "^1.7.0"
|