markstream-vue2 0.0.19 → 0.0.21
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/README.md +49 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +377 -346
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue_demi from 'vue-demi';
|
|
2
|
-
import { BaseNode, ParseOptions, MarkdownIt,
|
|
2
|
+
import { CodeBlockNode, BaseNode, ParseOptions, MarkdownIt, ParsedNode } from 'stream-markdown-parser';
|
|
3
3
|
export * from 'stream-markdown-parser';
|
|
4
4
|
export { KATEX_COMMANDS, MathOptions, normalizeStandaloneBackslashT, setDefaultMathOptions } from 'stream-markdown-parser';
|
|
5
5
|
|
|
@@ -281,20 +281,20 @@ declare const __VLS_component$7: vue_demi.DefineComponent<{
|
|
|
281
281
|
customId: string;
|
|
282
282
|
themes: unknown[];
|
|
283
283
|
isDark: boolean;
|
|
284
|
+
loading: boolean;
|
|
285
|
+
showHeader: boolean;
|
|
286
|
+
showCopyButton: boolean;
|
|
287
|
+
showCollapseButton: boolean;
|
|
284
288
|
maxWidth: string | number;
|
|
285
289
|
minWidth: string | number;
|
|
286
|
-
loading: boolean;
|
|
287
290
|
stream: boolean;
|
|
288
291
|
darkTheme: string | Record<string, any>;
|
|
289
292
|
lightTheme: string | Record<string, any>;
|
|
290
|
-
isShowPreview: boolean;
|
|
291
293
|
monacoOptions: Record<string, any>;
|
|
294
|
+
isShowPreview: boolean;
|
|
292
295
|
enableFontSizeControl: boolean;
|
|
293
|
-
showHeader: boolean;
|
|
294
|
-
showCopyButton: boolean;
|
|
295
296
|
showExpandButton: boolean;
|
|
296
297
|
showPreviewButton: boolean;
|
|
297
|
-
showCollapseButton: boolean;
|
|
298
298
|
showFontSizeButtons: boolean;
|
|
299
299
|
}>;
|
|
300
300
|
declare const _default$B: __VLS_WithTemplateSlots$7<typeof __VLS_component$7, __VLS_TemplateResult$7["slots"]>;
|
|
@@ -343,13 +343,13 @@ declare const _default$A: vue_demi.DefineComponent<__VLS_WithDefaults$4<__VLS_Ty
|
|
|
343
343
|
showExportButton: boolean;
|
|
344
344
|
showCollapseButton: boolean;
|
|
345
345
|
}>>>, {
|
|
346
|
-
maxHeight: string | number | null;
|
|
347
346
|
loading: boolean;
|
|
347
|
+
maxHeight: string | number | null;
|
|
348
348
|
showHeader: boolean;
|
|
349
|
-
showCopyButton: boolean;
|
|
350
|
-
showCollapseButton: boolean;
|
|
351
349
|
showModeToggle: boolean;
|
|
350
|
+
showCopyButton: boolean;
|
|
352
351
|
showExportButton: boolean;
|
|
352
|
+
showCollapseButton: boolean;
|
|
353
353
|
progressiveRender: boolean;
|
|
354
354
|
progressiveIntervalMs: number;
|
|
355
355
|
}>;
|
|
@@ -825,14 +825,14 @@ declare const __VLS_component$4: vue_demi.DefineComponent<__VLS_WithDefaults$2<_
|
|
|
825
825
|
showFullscreenButton: boolean;
|
|
826
826
|
showZoomControls: boolean;
|
|
827
827
|
}>>>, {
|
|
828
|
-
maxHeight: string | null;
|
|
829
828
|
loading: boolean;
|
|
829
|
+
maxHeight: string | null;
|
|
830
830
|
showHeader: boolean;
|
|
831
|
-
showCopyButton: boolean;
|
|
832
|
-
showCollapseButton: boolean;
|
|
833
831
|
showModeToggle: boolean;
|
|
832
|
+
showCopyButton: boolean;
|
|
834
833
|
showExportButton: boolean;
|
|
835
834
|
showFullscreenButton: boolean;
|
|
835
|
+
showCollapseButton: boolean;
|
|
836
836
|
showZoomControls: boolean;
|
|
837
837
|
}>;
|
|
838
838
|
declare const _default$n: __VLS_WithTemplateSlots$4<typeof __VLS_component$4, __VLS_TemplateResult$4["slots"]>;
|
|
@@ -1194,19 +1194,19 @@ declare const __VLS_component$3: vue_demi.DefineComponent<{
|
|
|
1194
1194
|
showTooltips: boolean;
|
|
1195
1195
|
themes: unknown[];
|
|
1196
1196
|
isDark: boolean;
|
|
1197
|
+
loading: boolean;
|
|
1198
|
+
showHeader: boolean;
|
|
1199
|
+
showCopyButton: boolean;
|
|
1200
|
+
showCollapseButton: boolean;
|
|
1197
1201
|
maxWidth: string | number;
|
|
1198
1202
|
minWidth: string | number;
|
|
1199
|
-
loading: boolean;
|
|
1200
1203
|
stream: boolean;
|
|
1201
1204
|
darkTheme: string;
|
|
1202
1205
|
lightTheme: string;
|
|
1203
1206
|
isShowPreview: boolean;
|
|
1204
1207
|
enableFontSizeControl: boolean;
|
|
1205
|
-
showHeader: boolean;
|
|
1206
|
-
showCopyButton: boolean;
|
|
1207
1208
|
showExpandButton: boolean;
|
|
1208
1209
|
showPreviewButton: boolean;
|
|
1209
|
-
showCollapseButton: boolean;
|
|
1210
1210
|
showFontSizeButtons: boolean;
|
|
1211
1211
|
}>;
|
|
1212
1212
|
declare const _default$h: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
|
|
@@ -1217,76 +1217,74 @@ type __VLS_WithTemplateSlots$3<T, S> = T & {
|
|
|
1217
1217
|
};
|
|
1218
1218
|
};
|
|
1219
1219
|
|
|
1220
|
-
interface
|
|
1220
|
+
interface CodeBlockNodeProps {
|
|
1221
|
+
node: CodeBlockNode;
|
|
1222
|
+
isDark?: boolean;
|
|
1223
|
+
loading?: boolean;
|
|
1224
|
+
stream?: boolean;
|
|
1225
|
+
darkTheme?: any;
|
|
1226
|
+
lightTheme?: any;
|
|
1227
|
+
isShowPreview?: boolean;
|
|
1228
|
+
monacoOptions?: {
|
|
1229
|
+
[k: string]: any;
|
|
1230
|
+
};
|
|
1231
|
+
enableFontSizeControl?: boolean;
|
|
1232
|
+
minWidth?: string | number;
|
|
1233
|
+
maxWidth?: string | number;
|
|
1234
|
+
themes?: any[];
|
|
1235
|
+
showHeader?: boolean;
|
|
1236
|
+
showCopyButton?: boolean;
|
|
1237
|
+
showExpandButton?: boolean;
|
|
1238
|
+
showPreviewButton?: boolean;
|
|
1239
|
+
showCollapseButton?: boolean;
|
|
1240
|
+
showFontSizeButtons?: boolean;
|
|
1241
|
+
showTooltips?: boolean;
|
|
1242
|
+
customId?: string;
|
|
1243
|
+
}
|
|
1244
|
+
interface ImageNodeProps {
|
|
1221
1245
|
node: {
|
|
1222
|
-
type: '
|
|
1223
|
-
|
|
1246
|
+
type: 'image';
|
|
1247
|
+
src: string;
|
|
1248
|
+
alt: string;
|
|
1249
|
+
title: string | null;
|
|
1224
1250
|
raw: string;
|
|
1225
1251
|
loading?: boolean;
|
|
1226
1252
|
};
|
|
1227
|
-
|
|
1253
|
+
fallbackSrc?: string;
|
|
1254
|
+
showCaption?: boolean;
|
|
1255
|
+
lazy?: boolean;
|
|
1256
|
+
svgMinHeight?: string;
|
|
1257
|
+
usePlaceholder?: boolean;
|
|
1228
1258
|
}
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
type __VLS_NonUndefinedable$d<T> = T extends undefined ? never : T;
|
|
1232
|
-
type __VLS_TypePropsToOption$d<T> = {
|
|
1233
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1234
|
-
type: vue_demi.PropType<__VLS_NonUndefinedable$d<T[K]>>;
|
|
1235
|
-
} : {
|
|
1236
|
-
type: vue_demi.PropType<T[K]>;
|
|
1237
|
-
required: true;
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
interface MathInlineNodeProps$1 {
|
|
1259
|
+
interface LinkNodeProps {
|
|
1242
1260
|
node: {
|
|
1243
|
-
type: '
|
|
1244
|
-
|
|
1261
|
+
type: 'link';
|
|
1262
|
+
href: string;
|
|
1263
|
+
title: string | null;
|
|
1264
|
+
text: string;
|
|
1265
|
+
children: {
|
|
1266
|
+
type: string;
|
|
1267
|
+
raw: string;
|
|
1268
|
+
}[];
|
|
1245
1269
|
raw: string;
|
|
1246
1270
|
loading?: boolean;
|
|
1247
|
-
markup?: string;
|
|
1248
1271
|
};
|
|
1249
|
-
indexKey
|
|
1272
|
+
indexKey: number | string;
|
|
1273
|
+
customId?: string;
|
|
1274
|
+
showTooltip?: boolean;
|
|
1275
|
+
color?: string;
|
|
1276
|
+
underlineHeight?: number;
|
|
1277
|
+
underlineBottom?: number | string;
|
|
1278
|
+
animationDuration?: number;
|
|
1279
|
+
animationOpacity?: number;
|
|
1280
|
+
animationTiming?: string;
|
|
1281
|
+
animationIteration?: string | number;
|
|
1282
|
+
}
|
|
1283
|
+
interface PreCodeNodeProps$1 {
|
|
1284
|
+
node: CodeBlockNode;
|
|
1250
1285
|
}
|
|
1251
|
-
declare function __VLS_template$2(): {
|
|
1252
|
-
attrs: Partial<{}>;
|
|
1253
|
-
slots: {
|
|
1254
|
-
loading?(_: {
|
|
1255
|
-
isLoading: true;
|
|
1256
|
-
}): any;
|
|
1257
|
-
};
|
|
1258
|
-
refs: {
|
|
1259
|
-
containerEl: HTMLSpanElement;
|
|
1260
|
-
};
|
|
1261
|
-
rootEl: HTMLSpanElement;
|
|
1262
|
-
};
|
|
1263
|
-
type __VLS_TemplateResult$2 = ReturnType<typeof __VLS_template$2>;
|
|
1264
|
-
declare const __VLS_component$2: vue_demi.DefineComponent<__VLS_TypePropsToOption$c<MathInlineNodeProps$1>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_TypePropsToOption$c<MathInlineNodeProps$1>>>, {}>;
|
|
1265
|
-
declare const _default$f: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
|
|
1266
|
-
|
|
1267
|
-
type __VLS_NonUndefinedable$c<T> = T extends undefined ? never : T;
|
|
1268
|
-
type __VLS_TypePropsToOption$c<T> = {
|
|
1269
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1270
|
-
type: vue_demi.PropType<__VLS_NonUndefinedable$c<T[K]>>;
|
|
1271
|
-
} : {
|
|
1272
|
-
type: vue_demi.PropType<T[K]>;
|
|
1273
|
-
required: true;
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
type __VLS_WithTemplateSlots$2<T, S> = T & {
|
|
1277
|
-
new (): {
|
|
1278
|
-
$scopedSlots: S;
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
|
|
1282
|
-
type KatexLoader = () => Promise<any> | any;
|
|
1283
|
-
declare function setKatexLoader(loader: KatexLoader | null): void;
|
|
1284
|
-
declare function enableKatex(loader?: KatexLoader): void;
|
|
1285
|
-
declare function disableKatex(): void;
|
|
1286
|
-
declare function isKatexEnabled(): boolean;
|
|
1287
|
-
|
|
1288
1286
|
interface MermaidBlockNodeProps$1 {
|
|
1289
|
-
node:
|
|
1287
|
+
node: CodeBlockNode;
|
|
1290
1288
|
maxHeight?: string | null;
|
|
1291
1289
|
loading?: boolean;
|
|
1292
1290
|
isDark?: boolean;
|
|
@@ -1294,6 +1292,11 @@ interface MermaidBlockNodeProps$1 {
|
|
|
1294
1292
|
parseTimeoutMs?: number;
|
|
1295
1293
|
renderTimeoutMs?: number;
|
|
1296
1294
|
fullRenderTimeoutMs?: number;
|
|
1295
|
+
renderDebounceMs?: number;
|
|
1296
|
+
contentStableDelayMs?: number;
|
|
1297
|
+
previewPollDelayMs?: number;
|
|
1298
|
+
previewPollMaxDelayMs?: number;
|
|
1299
|
+
previewPollMaxAttempts?: number;
|
|
1297
1300
|
showHeader?: boolean;
|
|
1298
1301
|
showModeToggle?: boolean;
|
|
1299
1302
|
showCopyButton?: boolean;
|
|
@@ -1304,135 +1307,60 @@ interface MermaidBlockNodeProps$1 {
|
|
|
1304
1307
|
enableWheelZoom?: boolean;
|
|
1305
1308
|
isStrict?: boolean;
|
|
1306
1309
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1310
|
+
interface MermaidBlockEvent<TPayload = any> {
|
|
1311
|
+
payload?: TPayload;
|
|
1312
|
+
defaultPrevented: boolean;
|
|
1313
|
+
preventDefault: () => void;
|
|
1314
|
+
svgElement?: SVGElement | null;
|
|
1315
|
+
svgString?: string | null;
|
|
1316
|
+
}
|
|
1317
|
+
interface D2BlockNodeProps {
|
|
1318
|
+
node: CodeBlockNode;
|
|
1319
|
+
maxHeight?: string | null;
|
|
1320
|
+
loading?: boolean;
|
|
1321
|
+
isDark?: boolean;
|
|
1322
|
+
progressiveRender?: boolean;
|
|
1323
|
+
progressiveIntervalMs?: number;
|
|
1324
|
+
themeId?: number | null;
|
|
1325
|
+
darkThemeId?: number | null;
|
|
1326
|
+
showHeader?: boolean;
|
|
1327
|
+
showModeToggle?: boolean;
|
|
1328
|
+
showCopyButton?: boolean;
|
|
1329
|
+
showExportButton?: boolean;
|
|
1330
|
+
showCollapseButton?: boolean;
|
|
1331
|
+
}
|
|
1332
|
+
interface MathBlockNodeProps$1 {
|
|
1333
|
+
node: {
|
|
1334
|
+
type: 'math_block';
|
|
1335
|
+
content: string;
|
|
1336
|
+
raw: string;
|
|
1337
|
+
loading?: boolean;
|
|
1313
1338
|
};
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1339
|
+
indexKey?: number | string;
|
|
1340
|
+
}
|
|
1341
|
+
interface MathInlineNodeProps$1 {
|
|
1342
|
+
node: {
|
|
1343
|
+
type: 'math_inline';
|
|
1344
|
+
content: string;
|
|
1345
|
+
raw: string;
|
|
1346
|
+
loading?: boolean;
|
|
1347
|
+
markup?: string;
|
|
1319
1348
|
};
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
maxHeight
|
|
1325
|
-
loading
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
showCollapseButton: boolean;
|
|
1336
|
-
showZoomControls: boolean;
|
|
1337
|
-
enableWheelZoom: boolean;
|
|
1338
|
-
isStrict: boolean;
|
|
1339
|
-
}>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {
|
|
1340
|
-
copy: (...args: any[]) => void;
|
|
1341
|
-
export: (...args: any[]) => void;
|
|
1342
|
-
openModal: (...args: any[]) => void;
|
|
1343
|
-
toggleMode: (...args: any[]) => void;
|
|
1344
|
-
}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption$b<MermaidBlockNodeProps$1>, {
|
|
1345
|
-
maxHeight: string;
|
|
1346
|
-
loading: boolean;
|
|
1347
|
-
workerTimeoutMs: number;
|
|
1348
|
-
parseTimeoutMs: number;
|
|
1349
|
-
renderTimeoutMs: number;
|
|
1350
|
-
fullRenderTimeoutMs: number;
|
|
1351
|
-
showHeader: boolean;
|
|
1352
|
-
showModeToggle: boolean;
|
|
1353
|
-
showCopyButton: boolean;
|
|
1354
|
-
showExportButton: boolean;
|
|
1355
|
-
showFullscreenButton: boolean;
|
|
1356
|
-
showCollapseButton: boolean;
|
|
1357
|
-
showZoomControls: boolean;
|
|
1358
|
-
enableWheelZoom: boolean;
|
|
1359
|
-
isStrict: boolean;
|
|
1360
|
-
}>>>, {
|
|
1361
|
-
maxHeight: string | null;
|
|
1362
|
-
loading: boolean;
|
|
1363
|
-
showHeader: boolean;
|
|
1364
|
-
showCopyButton: boolean;
|
|
1365
|
-
showCollapseButton: boolean;
|
|
1366
|
-
workerTimeoutMs: number;
|
|
1367
|
-
parseTimeoutMs: number;
|
|
1368
|
-
renderTimeoutMs: number;
|
|
1369
|
-
fullRenderTimeoutMs: number;
|
|
1370
|
-
showModeToggle: boolean;
|
|
1371
|
-
showExportButton: boolean;
|
|
1372
|
-
showFullscreenButton: boolean;
|
|
1373
|
-
showZoomControls: boolean;
|
|
1374
|
-
enableWheelZoom: boolean;
|
|
1375
|
-
isStrict: boolean;
|
|
1376
|
-
}>;
|
|
1377
|
-
declare const _default$e: __VLS_WithTemplateSlots$1<typeof __VLS_component$1, __VLS_TemplateResult$1["slots"]>;
|
|
1378
|
-
|
|
1379
|
-
type __VLS_WithDefaults<P, D> = {
|
|
1380
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
1381
|
-
default: D[K];
|
|
1382
|
-
}> : P[K];
|
|
1383
|
-
};
|
|
1384
|
-
type __VLS_NonUndefinedable$b<T> = T extends undefined ? never : T;
|
|
1385
|
-
type __VLS_TypePropsToOption$b<T> = {
|
|
1386
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1387
|
-
type: vue_demi.PropType<__VLS_NonUndefinedable$b<T[K]>>;
|
|
1388
|
-
} : {
|
|
1389
|
-
type: vue_demi.PropType<T[K]>;
|
|
1390
|
-
required: true;
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
type __VLS_WithTemplateSlots$1<T, S> = T & {
|
|
1394
|
-
new (): {
|
|
1395
|
-
$scopedSlots: S;
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
|
-
type __VLS_PrettifyLocal<T> = {
|
|
1399
|
-
[K in keyof T]: T[K];
|
|
1400
|
-
} & {};
|
|
1401
|
-
|
|
1402
|
-
type MermaidLoader = () => Promise<any> | any;
|
|
1403
|
-
declare function setMermaidLoader(loader: MermaidLoader | null): void;
|
|
1404
|
-
declare function enableMermaid(loader?: MermaidLoader): void;
|
|
1405
|
-
declare function disableMermaid(): void;
|
|
1406
|
-
declare function isMermaidEnabled(): boolean;
|
|
1407
|
-
|
|
1408
|
-
declare const _default$d: vue_demi.DefineComponent<{
|
|
1409
|
-
node: () => (BaseNode & Record<string, any>) | undefined;
|
|
1410
|
-
nodes: () => BaseNode[] | undefined;
|
|
1411
|
-
content: StringConstructor;
|
|
1412
|
-
loading: BooleanConstructor;
|
|
1413
|
-
final: BooleanConstructor;
|
|
1414
|
-
cacheKey: StringConstructor;
|
|
1415
|
-
parseOptions: () => ParseOptions | undefined;
|
|
1416
|
-
customHtmlTags: () => readonly string[] | undefined;
|
|
1417
|
-
customMarkdownIt: () => ((md: MarkdownIt) => MarkdownIt) | undefined;
|
|
1418
|
-
}, {
|
|
1419
|
-
forwardedListeners: vue_demi.ComputedRef<Record<string, Function | Function[]>>;
|
|
1420
|
-
resolvedFinal: vue_demi.ComputedRef<boolean>;
|
|
1421
|
-
resolvedNodes: vue_demi.ComputedRef<BaseNode[]>;
|
|
1422
|
-
}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<{
|
|
1423
|
-
node: () => (BaseNode & Record<string, any>) | undefined;
|
|
1424
|
-
nodes: () => BaseNode[] | undefined;
|
|
1425
|
-
content: StringConstructor;
|
|
1426
|
-
loading: BooleanConstructor;
|
|
1427
|
-
final: BooleanConstructor;
|
|
1428
|
-
cacheKey: StringConstructor;
|
|
1429
|
-
parseOptions: () => ParseOptions | undefined;
|
|
1430
|
-
customHtmlTags: () => readonly string[] | undefined;
|
|
1431
|
-
customMarkdownIt: () => ((md: MarkdownIt) => MarkdownIt) | undefined;
|
|
1432
|
-
}>>, {
|
|
1433
|
-
final: boolean;
|
|
1434
|
-
loading: boolean;
|
|
1435
|
-
}>;
|
|
1349
|
+
indexKey?: number | string;
|
|
1350
|
+
}
|
|
1351
|
+
interface InfographicBlockNodeProps {
|
|
1352
|
+
node: CodeBlockNode;
|
|
1353
|
+
maxHeight?: string | null;
|
|
1354
|
+
loading?: boolean;
|
|
1355
|
+
isDark?: boolean;
|
|
1356
|
+
showHeader?: boolean;
|
|
1357
|
+
showModeToggle?: boolean;
|
|
1358
|
+
showCopyButton?: boolean;
|
|
1359
|
+
showExportButton?: boolean;
|
|
1360
|
+
showFullscreenButton?: boolean;
|
|
1361
|
+
showCollapseButton?: boolean;
|
|
1362
|
+
showZoomControls?: boolean;
|
|
1363
|
+
}
|
|
1436
1364
|
|
|
1437
1365
|
interface NodeRendererProps {
|
|
1438
1366
|
content?: string;
|
|
@@ -1471,6 +1399,12 @@ interface NodeRendererProps {
|
|
|
1471
1399
|
codeBlockMaxWidth?: string | number;
|
|
1472
1400
|
/** Arbitrary props to forward to every CodeBlockNode */
|
|
1473
1401
|
codeBlockProps?: Record<string, any>;
|
|
1402
|
+
/** Props forwarded to MermaidBlockNode for mermaid fences */
|
|
1403
|
+
mermaidProps?: Partial<Omit<MermaidBlockNodeProps$1, 'node' | 'loading' | 'isDark'>>;
|
|
1404
|
+
/** Props forwarded to D2BlockNode for d2/d2lang fences */
|
|
1405
|
+
d2Props?: Partial<Omit<D2BlockNodeProps, 'node' | 'loading' | 'isDark'>>;
|
|
1406
|
+
/** Props forwarded to InfographicBlockNode for infographic fences */
|
|
1407
|
+
infographicProps?: Partial<Omit<InfographicBlockNodeProps, 'node' | 'loading' | 'isDark'>>;
|
|
1474
1408
|
/** Global tooltip toggle for link/code-block renderers (default: true) */
|
|
1475
1409
|
showTooltips?: boolean;
|
|
1476
1410
|
themes?: string[];
|
|
@@ -1499,7 +1433,7 @@ interface NodeRendererProps {
|
|
|
1499
1433
|
liveNodeBuffer?: number;
|
|
1500
1434
|
}
|
|
1501
1435
|
|
|
1502
|
-
declare const _default$
|
|
1436
|
+
declare const _default$g: vue_demi.DefineComponent<{
|
|
1503
1437
|
content: StringConstructor;
|
|
1504
1438
|
nodes: () => BaseNode[] | undefined;
|
|
1505
1439
|
final: BooleanConstructor;
|
|
@@ -1591,6 +1525,243 @@ declare const _default$c: vue_demi.DefineComponent<{
|
|
|
1591
1525
|
viewportPriority: boolean;
|
|
1592
1526
|
}>;
|
|
1593
1527
|
|
|
1528
|
+
interface MathBlockNodeProps {
|
|
1529
|
+
node: {
|
|
1530
|
+
type: 'math_block';
|
|
1531
|
+
content: string;
|
|
1532
|
+
raw: string;
|
|
1533
|
+
loading?: boolean;
|
|
1534
|
+
};
|
|
1535
|
+
indexKey?: number | string;
|
|
1536
|
+
}
|
|
1537
|
+
declare const _default$f: vue_demi.DefineComponent<__VLS_TypePropsToOption$d<MathBlockNodeProps>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_TypePropsToOption$d<MathBlockNodeProps>>>, {}>;
|
|
1538
|
+
|
|
1539
|
+
type __VLS_NonUndefinedable$d<T> = T extends undefined ? never : T;
|
|
1540
|
+
type __VLS_TypePropsToOption$d<T> = {
|
|
1541
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1542
|
+
type: vue_demi.PropType<__VLS_NonUndefinedable$d<T[K]>>;
|
|
1543
|
+
} : {
|
|
1544
|
+
type: vue_demi.PropType<T[K]>;
|
|
1545
|
+
required: true;
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
interface MathInlineNodeProps {
|
|
1550
|
+
node: {
|
|
1551
|
+
type: 'math_inline';
|
|
1552
|
+
content: string;
|
|
1553
|
+
raw: string;
|
|
1554
|
+
loading?: boolean;
|
|
1555
|
+
markup?: string;
|
|
1556
|
+
};
|
|
1557
|
+
indexKey?: number | string;
|
|
1558
|
+
}
|
|
1559
|
+
declare function __VLS_template$2(): {
|
|
1560
|
+
attrs: Partial<{}>;
|
|
1561
|
+
slots: {
|
|
1562
|
+
loading?(_: {
|
|
1563
|
+
isLoading: true;
|
|
1564
|
+
}): any;
|
|
1565
|
+
};
|
|
1566
|
+
refs: {
|
|
1567
|
+
containerEl: HTMLSpanElement;
|
|
1568
|
+
};
|
|
1569
|
+
rootEl: HTMLSpanElement;
|
|
1570
|
+
};
|
|
1571
|
+
type __VLS_TemplateResult$2 = ReturnType<typeof __VLS_template$2>;
|
|
1572
|
+
declare const __VLS_component$2: vue_demi.DefineComponent<__VLS_TypePropsToOption$c<MathInlineNodeProps>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_TypePropsToOption$c<MathInlineNodeProps>>>, {}>;
|
|
1573
|
+
declare const _default$e: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
|
|
1574
|
+
|
|
1575
|
+
type __VLS_NonUndefinedable$c<T> = T extends undefined ? never : T;
|
|
1576
|
+
type __VLS_TypePropsToOption$c<T> = {
|
|
1577
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1578
|
+
type: vue_demi.PropType<__VLS_NonUndefinedable$c<T[K]>>;
|
|
1579
|
+
} : {
|
|
1580
|
+
type: vue_demi.PropType<T[K]>;
|
|
1581
|
+
required: true;
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
type __VLS_WithTemplateSlots$2<T, S> = T & {
|
|
1585
|
+
new (): {
|
|
1586
|
+
$scopedSlots: S;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
type KatexLoader = () => Promise<any> | any;
|
|
1591
|
+
declare function setKatexLoader(loader: KatexLoader | null): void;
|
|
1592
|
+
declare function enableKatex(loader?: KatexLoader): void;
|
|
1593
|
+
declare function disableKatex(): void;
|
|
1594
|
+
declare function isKatexEnabled(): boolean;
|
|
1595
|
+
|
|
1596
|
+
interface MermaidBlockNodeProps {
|
|
1597
|
+
node: any;
|
|
1598
|
+
maxHeight?: string | null;
|
|
1599
|
+
loading?: boolean;
|
|
1600
|
+
isDark?: boolean;
|
|
1601
|
+
workerTimeoutMs?: number;
|
|
1602
|
+
parseTimeoutMs?: number;
|
|
1603
|
+
renderTimeoutMs?: number;
|
|
1604
|
+
fullRenderTimeoutMs?: number;
|
|
1605
|
+
renderDebounceMs?: number;
|
|
1606
|
+
contentStableDelayMs?: number;
|
|
1607
|
+
previewPollDelayMs?: number;
|
|
1608
|
+
previewPollMaxDelayMs?: number;
|
|
1609
|
+
previewPollMaxAttempts?: number;
|
|
1610
|
+
showHeader?: boolean;
|
|
1611
|
+
showModeToggle?: boolean;
|
|
1612
|
+
showCopyButton?: boolean;
|
|
1613
|
+
showExportButton?: boolean;
|
|
1614
|
+
showFullscreenButton?: boolean;
|
|
1615
|
+
showCollapseButton?: boolean;
|
|
1616
|
+
showZoomControls?: boolean;
|
|
1617
|
+
enableWheelZoom?: boolean;
|
|
1618
|
+
isStrict?: boolean;
|
|
1619
|
+
}
|
|
1620
|
+
declare function __VLS_template$1(): {
|
|
1621
|
+
attrs: Partial<{}>;
|
|
1622
|
+
slots: {
|
|
1623
|
+
'header-left'?(_: {}): any;
|
|
1624
|
+
'header-center'?(_: {}): any;
|
|
1625
|
+
'header-right'?(_: {}): any;
|
|
1626
|
+
};
|
|
1627
|
+
refs: {
|
|
1628
|
+
modeContainerRef: HTMLDivElement;
|
|
1629
|
+
mermaidContainer: HTMLDivElement;
|
|
1630
|
+
mermaidContent: HTMLDivElement;
|
|
1631
|
+
modalContent: HTMLDivElement;
|
|
1632
|
+
};
|
|
1633
|
+
rootEl: HTMLDivElement;
|
|
1634
|
+
};
|
|
1635
|
+
type __VLS_TemplateResult$1 = ReturnType<typeof __VLS_template$1>;
|
|
1636
|
+
declare const __VLS_component$1: vue_demi.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption$b<MermaidBlockNodeProps>, {
|
|
1637
|
+
maxHeight: string;
|
|
1638
|
+
loading: boolean;
|
|
1639
|
+
workerTimeoutMs: number;
|
|
1640
|
+
parseTimeoutMs: number;
|
|
1641
|
+
renderTimeoutMs: number;
|
|
1642
|
+
fullRenderTimeoutMs: number;
|
|
1643
|
+
renderDebounceMs: number;
|
|
1644
|
+
contentStableDelayMs: number;
|
|
1645
|
+
previewPollDelayMs: number;
|
|
1646
|
+
previewPollMaxDelayMs: number;
|
|
1647
|
+
previewPollMaxAttempts: number;
|
|
1648
|
+
showHeader: boolean;
|
|
1649
|
+
showModeToggle: boolean;
|
|
1650
|
+
showCopyButton: boolean;
|
|
1651
|
+
showExportButton: boolean;
|
|
1652
|
+
showFullscreenButton: boolean;
|
|
1653
|
+
showCollapseButton: boolean;
|
|
1654
|
+
showZoomControls: boolean;
|
|
1655
|
+
enableWheelZoom: boolean;
|
|
1656
|
+
isStrict: boolean;
|
|
1657
|
+
}>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {
|
|
1658
|
+
copy: (...args: any[]) => void;
|
|
1659
|
+
export: (...args: any[]) => void;
|
|
1660
|
+
openModal: (...args: any[]) => void;
|
|
1661
|
+
toggleMode: (...args: any[]) => void;
|
|
1662
|
+
}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption$b<MermaidBlockNodeProps>, {
|
|
1663
|
+
maxHeight: string;
|
|
1664
|
+
loading: boolean;
|
|
1665
|
+
workerTimeoutMs: number;
|
|
1666
|
+
parseTimeoutMs: number;
|
|
1667
|
+
renderTimeoutMs: number;
|
|
1668
|
+
fullRenderTimeoutMs: number;
|
|
1669
|
+
renderDebounceMs: number;
|
|
1670
|
+
contentStableDelayMs: number;
|
|
1671
|
+
previewPollDelayMs: number;
|
|
1672
|
+
previewPollMaxDelayMs: number;
|
|
1673
|
+
previewPollMaxAttempts: number;
|
|
1674
|
+
showHeader: boolean;
|
|
1675
|
+
showModeToggle: boolean;
|
|
1676
|
+
showCopyButton: boolean;
|
|
1677
|
+
showExportButton: boolean;
|
|
1678
|
+
showFullscreenButton: boolean;
|
|
1679
|
+
showCollapseButton: boolean;
|
|
1680
|
+
showZoomControls: boolean;
|
|
1681
|
+
enableWheelZoom: boolean;
|
|
1682
|
+
isStrict: boolean;
|
|
1683
|
+
}>>>, {
|
|
1684
|
+
loading: boolean;
|
|
1685
|
+
maxHeight: string | null;
|
|
1686
|
+
workerTimeoutMs: number;
|
|
1687
|
+
parseTimeoutMs: number;
|
|
1688
|
+
renderTimeoutMs: number;
|
|
1689
|
+
fullRenderTimeoutMs: number;
|
|
1690
|
+
renderDebounceMs: number;
|
|
1691
|
+
contentStableDelayMs: number;
|
|
1692
|
+
previewPollDelayMs: number;
|
|
1693
|
+
previewPollMaxDelayMs: number;
|
|
1694
|
+
previewPollMaxAttempts: number;
|
|
1695
|
+
showHeader: boolean;
|
|
1696
|
+
showModeToggle: boolean;
|
|
1697
|
+
showCopyButton: boolean;
|
|
1698
|
+
showExportButton: boolean;
|
|
1699
|
+
showFullscreenButton: boolean;
|
|
1700
|
+
showCollapseButton: boolean;
|
|
1701
|
+
showZoomControls: boolean;
|
|
1702
|
+
enableWheelZoom: boolean;
|
|
1703
|
+
isStrict: boolean;
|
|
1704
|
+
}>;
|
|
1705
|
+
declare const _default$d: __VLS_WithTemplateSlots$1<typeof __VLS_component$1, __VLS_TemplateResult$1["slots"]>;
|
|
1706
|
+
|
|
1707
|
+
type __VLS_WithDefaults<P, D> = {
|
|
1708
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
1709
|
+
default: D[K];
|
|
1710
|
+
}> : P[K];
|
|
1711
|
+
};
|
|
1712
|
+
type __VLS_NonUndefinedable$b<T> = T extends undefined ? never : T;
|
|
1713
|
+
type __VLS_TypePropsToOption$b<T> = {
|
|
1714
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
1715
|
+
type: vue_demi.PropType<__VLS_NonUndefinedable$b<T[K]>>;
|
|
1716
|
+
} : {
|
|
1717
|
+
type: vue_demi.PropType<T[K]>;
|
|
1718
|
+
required: true;
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
type __VLS_WithTemplateSlots$1<T, S> = T & {
|
|
1722
|
+
new (): {
|
|
1723
|
+
$scopedSlots: S;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
type __VLS_PrettifyLocal<T> = {
|
|
1727
|
+
[K in keyof T]: T[K];
|
|
1728
|
+
} & {};
|
|
1729
|
+
|
|
1730
|
+
type MermaidLoader = () => Promise<any> | any;
|
|
1731
|
+
declare function setMermaidLoader(loader: MermaidLoader | null): void;
|
|
1732
|
+
declare function enableMermaid(loader?: MermaidLoader): void;
|
|
1733
|
+
declare function disableMermaid(): void;
|
|
1734
|
+
declare function isMermaidEnabled(): boolean;
|
|
1735
|
+
|
|
1736
|
+
declare const _default$c: vue_demi.DefineComponent<{
|
|
1737
|
+
node: () => (BaseNode & Record<string, any>) | undefined;
|
|
1738
|
+
nodes: () => BaseNode[] | undefined;
|
|
1739
|
+
content: StringConstructor;
|
|
1740
|
+
loading: BooleanConstructor;
|
|
1741
|
+
final: BooleanConstructor;
|
|
1742
|
+
cacheKey: StringConstructor;
|
|
1743
|
+
parseOptions: () => ParseOptions | undefined;
|
|
1744
|
+
customHtmlTags: () => readonly string[] | undefined;
|
|
1745
|
+
customMarkdownIt: () => ((md: MarkdownIt) => MarkdownIt) | undefined;
|
|
1746
|
+
}, {
|
|
1747
|
+
forwardedListeners: vue_demi.ComputedRef<Record<string, ((...args: unknown[]) => unknown) | ((...args: unknown[]) => unknown)[]>>;
|
|
1748
|
+
resolvedFinal: vue_demi.ComputedRef<boolean>;
|
|
1749
|
+
resolvedNodes: vue_demi.ComputedRef<BaseNode[]>;
|
|
1750
|
+
}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<{
|
|
1751
|
+
node: () => (BaseNode & Record<string, any>) | undefined;
|
|
1752
|
+
nodes: () => BaseNode[] | undefined;
|
|
1753
|
+
content: StringConstructor;
|
|
1754
|
+
loading: BooleanConstructor;
|
|
1755
|
+
final: BooleanConstructor;
|
|
1756
|
+
cacheKey: StringConstructor;
|
|
1757
|
+
parseOptions: () => ParseOptions | undefined;
|
|
1758
|
+
customHtmlTags: () => readonly string[] | undefined;
|
|
1759
|
+
customMarkdownIt: () => ((md: MarkdownIt) => MarkdownIt) | undefined;
|
|
1760
|
+
}>>, {
|
|
1761
|
+
final: boolean;
|
|
1762
|
+
loading: boolean;
|
|
1763
|
+
}>;
|
|
1764
|
+
|
|
1594
1765
|
interface NodeChild$4 {
|
|
1595
1766
|
type: string;
|
|
1596
1767
|
raw: string;
|
|
@@ -1617,10 +1788,10 @@ type __VLS_TypePropsToOption$a<T> = {
|
|
|
1617
1788
|
};
|
|
1618
1789
|
};
|
|
1619
1790
|
|
|
1620
|
-
interface PreCodeNodeProps
|
|
1791
|
+
interface PreCodeNodeProps {
|
|
1621
1792
|
node: any;
|
|
1622
1793
|
}
|
|
1623
|
-
declare const _default$a: vue_demi.DefineComponent<__VLS_TypePropsToOption$9<PreCodeNodeProps
|
|
1794
|
+
declare const _default$a: vue_demi.DefineComponent<__VLS_TypePropsToOption$9<PreCodeNodeProps>, {}, {}, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, Readonly<vue_demi.ExtractPropTypes<__VLS_TypePropsToOption$9<PreCodeNodeProps>>>, {}>;
|
|
1624
1795
|
|
|
1625
1796
|
type __VLS_NonUndefinedable$9<T> = T extends undefined ? never : T;
|
|
1626
1797
|
type __VLS_TypePropsToOption$9<T> = {
|
|
@@ -1960,146 +2131,6 @@ declare function removeCustomComponents(id: string): void;
|
|
|
1960
2131
|
*/
|
|
1961
2132
|
declare function clearGlobalCustomComponents(): void;
|
|
1962
2133
|
|
|
1963
|
-
interface CodeBlockNodeProps {
|
|
1964
|
-
node: CodeBlockNode;
|
|
1965
|
-
isDark?: boolean;
|
|
1966
|
-
loading?: boolean;
|
|
1967
|
-
stream?: boolean;
|
|
1968
|
-
darkTheme?: any;
|
|
1969
|
-
lightTheme?: any;
|
|
1970
|
-
isShowPreview?: boolean;
|
|
1971
|
-
monacoOptions?: {
|
|
1972
|
-
[k: string]: any;
|
|
1973
|
-
};
|
|
1974
|
-
enableFontSizeControl?: boolean;
|
|
1975
|
-
minWidth?: string | number;
|
|
1976
|
-
maxWidth?: string | number;
|
|
1977
|
-
themes?: any[];
|
|
1978
|
-
showHeader?: boolean;
|
|
1979
|
-
showCopyButton?: boolean;
|
|
1980
|
-
showExpandButton?: boolean;
|
|
1981
|
-
showPreviewButton?: boolean;
|
|
1982
|
-
showCollapseButton?: boolean;
|
|
1983
|
-
showFontSizeButtons?: boolean;
|
|
1984
|
-
showTooltips?: boolean;
|
|
1985
|
-
customId?: string;
|
|
1986
|
-
}
|
|
1987
|
-
interface ImageNodeProps {
|
|
1988
|
-
node: {
|
|
1989
|
-
type: 'image';
|
|
1990
|
-
src: string;
|
|
1991
|
-
alt: string;
|
|
1992
|
-
title: string | null;
|
|
1993
|
-
raw: string;
|
|
1994
|
-
loading?: boolean;
|
|
1995
|
-
};
|
|
1996
|
-
fallbackSrc?: string;
|
|
1997
|
-
showCaption?: boolean;
|
|
1998
|
-
lazy?: boolean;
|
|
1999
|
-
svgMinHeight?: string;
|
|
2000
|
-
usePlaceholder?: boolean;
|
|
2001
|
-
}
|
|
2002
|
-
interface LinkNodeProps {
|
|
2003
|
-
node: {
|
|
2004
|
-
type: 'link';
|
|
2005
|
-
href: string;
|
|
2006
|
-
title: string | null;
|
|
2007
|
-
text: string;
|
|
2008
|
-
children: {
|
|
2009
|
-
type: string;
|
|
2010
|
-
raw: string;
|
|
2011
|
-
}[];
|
|
2012
|
-
raw: string;
|
|
2013
|
-
loading?: boolean;
|
|
2014
|
-
};
|
|
2015
|
-
indexKey: number | string;
|
|
2016
|
-
customId?: string;
|
|
2017
|
-
showTooltip?: boolean;
|
|
2018
|
-
color?: string;
|
|
2019
|
-
underlineHeight?: number;
|
|
2020
|
-
underlineBottom?: number | string;
|
|
2021
|
-
animationDuration?: number;
|
|
2022
|
-
animationOpacity?: number;
|
|
2023
|
-
animationTiming?: string;
|
|
2024
|
-
animationIteration?: string | number;
|
|
2025
|
-
}
|
|
2026
|
-
interface PreCodeNodeProps {
|
|
2027
|
-
node: CodeBlockNode;
|
|
2028
|
-
}
|
|
2029
|
-
interface MermaidBlockNodeProps {
|
|
2030
|
-
node: CodeBlockNode;
|
|
2031
|
-
maxHeight?: string | null;
|
|
2032
|
-
loading?: boolean;
|
|
2033
|
-
isDark?: boolean;
|
|
2034
|
-
workerTimeoutMs?: number;
|
|
2035
|
-
parseTimeoutMs?: number;
|
|
2036
|
-
renderTimeoutMs?: number;
|
|
2037
|
-
fullRenderTimeoutMs?: number;
|
|
2038
|
-
showHeader?: boolean;
|
|
2039
|
-
showModeToggle?: boolean;
|
|
2040
|
-
showCopyButton?: boolean;
|
|
2041
|
-
showExportButton?: boolean;
|
|
2042
|
-
showFullscreenButton?: boolean;
|
|
2043
|
-
showCollapseButton?: boolean;
|
|
2044
|
-
showZoomControls?: boolean;
|
|
2045
|
-
enableWheelZoom?: boolean;
|
|
2046
|
-
isStrict?: boolean;
|
|
2047
|
-
}
|
|
2048
|
-
interface MermaidBlockEvent<TPayload = any> {
|
|
2049
|
-
payload?: TPayload;
|
|
2050
|
-
defaultPrevented: boolean;
|
|
2051
|
-
preventDefault: () => void;
|
|
2052
|
-
svgElement?: SVGElement | null;
|
|
2053
|
-
svgString?: string | null;
|
|
2054
|
-
}
|
|
2055
|
-
interface D2BlockNodeProps {
|
|
2056
|
-
node: CodeBlockNode;
|
|
2057
|
-
maxHeight?: string | null;
|
|
2058
|
-
loading?: boolean;
|
|
2059
|
-
isDark?: boolean;
|
|
2060
|
-
progressiveRender?: boolean;
|
|
2061
|
-
progressiveIntervalMs?: number;
|
|
2062
|
-
themeId?: number | null;
|
|
2063
|
-
darkThemeId?: number | null;
|
|
2064
|
-
showHeader?: boolean;
|
|
2065
|
-
showModeToggle?: boolean;
|
|
2066
|
-
showCopyButton?: boolean;
|
|
2067
|
-
showExportButton?: boolean;
|
|
2068
|
-
showCollapseButton?: boolean;
|
|
2069
|
-
}
|
|
2070
|
-
interface MathBlockNodeProps {
|
|
2071
|
-
node: {
|
|
2072
|
-
type: 'math_block';
|
|
2073
|
-
content: string;
|
|
2074
|
-
raw: string;
|
|
2075
|
-
loading?: boolean;
|
|
2076
|
-
};
|
|
2077
|
-
indexKey?: number | string;
|
|
2078
|
-
}
|
|
2079
|
-
interface MathInlineNodeProps {
|
|
2080
|
-
node: {
|
|
2081
|
-
type: 'math_inline';
|
|
2082
|
-
content: string;
|
|
2083
|
-
raw: string;
|
|
2084
|
-
loading?: boolean;
|
|
2085
|
-
markup?: string;
|
|
2086
|
-
};
|
|
2087
|
-
indexKey?: number | string;
|
|
2088
|
-
}
|
|
2089
|
-
interface InfographicBlockNodeProps {
|
|
2090
|
-
node: CodeBlockNode;
|
|
2091
|
-
maxHeight?: string | null;
|
|
2092
|
-
loading?: boolean;
|
|
2093
|
-
isDark?: boolean;
|
|
2094
|
-
showHeader?: boolean;
|
|
2095
|
-
showModeToggle?: boolean;
|
|
2096
|
-
showCopyButton?: boolean;
|
|
2097
|
-
showExportButton?: boolean;
|
|
2098
|
-
showFullscreenButton?: boolean;
|
|
2099
|
-
showCollapseButton?: boolean;
|
|
2100
|
-
showZoomControls?: boolean;
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
2134
|
declare function getUseMonaco(): Promise<any>;
|
|
2104
2135
|
|
|
2105
2136
|
type NestedRenderableNode = (ParsedNode | BaseNode) & Record<string, unknown>;
|
|
@@ -2299,4 +2330,4 @@ declare const VueRendererMarkdown: {
|
|
|
2299
2330
|
}): void;
|
|
2300
2331
|
};
|
|
2301
2332
|
|
|
2302
|
-
export { _default$E as AdmonitionNode, BackpressureOptions, _default$D as BlockquoteNode, _default$C as CheckboxNode, _default$B as CodeBlockNode, CodeBlockNodeProps, _default$A as D2BlockNode, D2BlockNodeProps, D2Loader, _default$z as DefinitionListNode, _default$y as EmojiNode, _default$x as EmphasisNode, _default$w as FootnoteAnchorNode, _default$v as FootnoteNode, _default$u as FootnoteReferenceNode, _default$t as HardBreakNode, _default$s as HeadingNode, _default$r as HighlightNode, _default$q as HtmlBlockNode, _default$p as HtmlInlineNode, _default$o as ImageNode, ImageNodeProps, _default$n as InfographicBlockNode, InfographicBlockNodeProps, _default$m as InlineCodeNode, _default$l as InsertNode, KaTeXCDNWorkerHandle, KaTeXCDNWorkerMode, KaTeXCDNWorkerOptions, KatexLoader, LanguageIconResolver, _default$k as LinkNode, LinkNodeProps, _default$j as ListItemNode, _default$i as ListNode, MERMAID_DISABLED_CODE, MERMAID_WORKER_BUSY_CODE, _default$h as MarkdownCodeBlockNode, _default$
|
|
2333
|
+
export { _default$E as AdmonitionNode, BackpressureOptions, _default$D as BlockquoteNode, _default$C as CheckboxNode, _default$B as CodeBlockNode, CodeBlockNodeProps, _default$A as D2BlockNode, D2BlockNodeProps, D2Loader, _default$z as DefinitionListNode, _default$y as EmojiNode, _default$x as EmphasisNode, _default$w as FootnoteAnchorNode, _default$v as FootnoteNode, _default$u as FootnoteReferenceNode, _default$t as HardBreakNode, _default$s as HeadingNode, _default$r as HighlightNode, _default$q as HtmlBlockNode, _default$p as HtmlInlineNode, _default$o as ImageNode, ImageNodeProps, _default$n as InfographicBlockNode, InfographicBlockNodeProps, _default$m as InlineCodeNode, _default$l as InsertNode, KaTeXCDNWorkerHandle, KaTeXCDNWorkerMode, KaTeXCDNWorkerOptions, KatexLoader, LanguageIconResolver, _default$k as LinkNode, LinkNodeProps, _default$j as ListItemNode, _default$i as ListNode, MERMAID_DISABLED_CODE, MERMAID_WORKER_BUSY_CODE, _default$h as MarkdownCodeBlockNode, _default$g as MarkdownRender, _default$f as MathBlockNode, MathBlockNodeProps$1 as MathBlockNodeProps, _default$e as MathInlineNode, MathInlineNodeProps$1 as MathInlineNodeProps, MermaidBlockEvent, _default$d as MermaidBlockNode, MermaidBlockNodeProps$1 as MermaidBlockNodeProps, MermaidCDNWorkerHandle, MermaidCDNWorkerMode, MermaidCDNWorkerOptions, MermaidLoader, NestedMarkdownHtmlInput, NestedMarkdownHtmlOptions, NestedMarkdownNodesInput, NestedMarkdownNodesOptions, NestedRenderableNode, _default$c as NestedRenderer, NodeRendererProps, _default$b as ParagraphNode, _default$a as PreCodeNode, PreCodeNodeProps$1 as PreCodeNodeProps, _default$9 as ReferenceNode, _default$8 as StrikethroughNode, _default$7 as StrongNode, _default$6 as SubscriptNode, _default$5 as SuperscriptNode, _default$4 as TableNode, _default$3 as TextNode, _default$2 as ThematicBreakNode, _default$1 as Tooltip, _default as VmrContainerNode, VueRendererMarkdown, WORKER_BUSY_CODE, buildKaTeXCDNWorkerSource, buildMermaidCDNWorkerSource, canParseOffthread, clearGlobalCustomComponents, clearKaTeXWorker, clearMermaidWorker, createKaTeXWorkerFromCDN, createMermaidWorkerFromCDN, _default$g as default, disableD2, disableKatex, disableMermaid, enableD2, enableKatex, enableMermaid, findPrefixOffthread, getCustomNodeComponents, getKaTeXBackpressureDefaults, getKaTeXWorkerLoad, getLanguageIcon, getMermaidWorkerLoad, getUseMonaco, isD2Enabled, isKaTeXWorkerBusy, isKatexEnabled, isMermaidEnabled, languageIconsRevision, languageMap, normalizeLanguageIdentifier, parseNestedMarkdownToNodes, preloadExtendedLanguageIcons, removeCustomComponents, renderKaTeXInWorker, renderKaTeXWithBackpressure, renderMarkdownNodeToHtml, renderMarkdownNodesToHtml, renderNestedMarkdownToHtml, resolveMonacoLanguageId, setCustomComponents, setD2Loader, setDefaultI18nMap, setKaTeXBackpressureDefaults, setKaTeXCache, setKaTeXWorker, setKaTeXWorkerDebug, setKaTeXWorkerMaxConcurrency, setKatexLoader, setLanguageIconResolver, setMermaidLoader, setMermaidWorker, setMermaidWorkerClientDebug, setMermaidWorkerMaxConcurrency, terminateWorker, waitForKaTeXWorkerSlot };
|