vuepress-plugin-md-power 1.0.0-rc.164 → 1.0.0-rc.166

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.
@@ -4,7 +4,7 @@ import { Markdown, MarkdownEnv } from "vuepress/markdown";
4
4
  import { BuiltinTheme, ThemeRegistration } from "shiki";
5
5
 
6
6
  //#region src/shared/caniuse.d.ts
7
- type CanIUseMode = "embed" | "image";
7
+ type CanIUseMode = 'embed' | 'image';
8
8
  interface CanIUseTokenMeta {
9
9
  feature: string;
10
10
  mode: CanIUseMode;
@@ -12,14 +12,14 @@ interface CanIUseTokenMeta {
12
12
  }
13
13
  interface CanIUseOptions {
14
14
  /**
15
- * 嵌入模式
16
- *
17
- * embed 通过iframe嵌入,提供可交互视图
18
- *
19
- * image 通过图片嵌入,静态
20
- *
21
- * @default 'embed'
22
- */
15
+ * 嵌入模式
16
+ *
17
+ * embed 通过iframe嵌入,提供可交互视图
18
+ *
19
+ * image 通过图片嵌入,静态
20
+ *
21
+ * @default 'embed'
22
+ */
23
23
  mode?: CanIUseMode;
24
24
  }
25
25
  //#endregion
@@ -46,7 +46,7 @@ interface CodeSandboxTokenMeta extends SizeOptions {
46
46
  user?: string;
47
47
  id?: string;
48
48
  layout?: string;
49
- type?: "button" | "embed";
49
+ type?: 'button' | 'embed';
50
50
  title?: string;
51
51
  filepath?: string;
52
52
  navbar?: boolean;
@@ -63,7 +63,7 @@ interface CodeTabsOptions {
63
63
  //#endregion
64
64
  //#region src/shared/demo.d.ts
65
65
  interface DemoFile {
66
- type: "vue" | "normal" | "css" | "markdown";
66
+ type: 'vue' | 'normal' | 'css' | 'markdown';
67
67
  export?: string;
68
68
  path: string;
69
69
  gitignore?: boolean;
@@ -72,7 +72,7 @@ interface MarkdownDemoEnv extends MarkdownEnv {
72
72
  demoFiles?: DemoFile[];
73
73
  }
74
74
  interface DemoMeta {
75
- type: "vue" | "normal" | "markdown";
75
+ type: 'vue' | 'normal' | 'markdown';
76
76
  url: string;
77
77
  title?: string;
78
78
  desc?: string;
@@ -86,7 +86,7 @@ interface DemoContainerRender {
86
86
  }
87
87
  //#endregion
88
88
  //#region src/shared/fileTree.d.ts
89
- type FileTreeIconMode = "simple" | "colored";
89
+ type FileTreeIconMode = 'simple' | 'colored';
90
90
  interface FileTreeOptions {
91
91
  icon?: FileTreeIconMode;
92
92
  }
@@ -95,60 +95,60 @@ interface FileTreeOptions {
95
95
  type IconOptions = IconifyProvider | IconFontProvider | FontAwesomeProvider;
96
96
  interface IconProviderBase {
97
97
  /**
98
- * The provider of the icon
99
- *
100
- * 图标提供商
101
- * @default 'iconify'
102
- */
103
- provider?: "iconify" | "iconfont" | "fontawesome";
98
+ * The provider of the icon
99
+ *
100
+ * 图标提供商
101
+ * @default 'iconify'
102
+ */
103
+ provider?: 'iconify' | 'iconfont' | 'fontawesome';
104
104
  /**
105
- * The size of the icon
106
- * @default '1em'
107
- */
105
+ * The size of the icon
106
+ * @default '1em'
107
+ */
108
108
  size?: string | number;
109
109
  /**
110
- * The color of the icon
111
- * @default 'currentColor'
112
- */
110
+ * The color of the icon
111
+ * @default 'currentColor'
112
+ */
113
113
  color?: string;
114
114
  }
115
115
  interface IconFontProvider extends IconProviderBase {
116
- provider?: "iconfont";
116
+ provider?: 'iconfont';
117
117
  /**
118
- * The prefix of the iconfont
119
- * @default 'iconfont icon-'
120
- */
118
+ * The prefix of the iconfont
119
+ * @default 'iconfont icon-'
120
+ */
121
121
  prefix?: string;
122
122
  /**
123
- * The assets of the iconfont
124
- */
123
+ * The assets of the iconfont
124
+ */
125
125
  assets?: IconAssetLink | IconAssetLink[];
126
126
  }
127
127
  interface FontAwesomeProvider extends IconProviderBase {
128
- provider?: "fontawesome";
128
+ provider?: 'fontawesome';
129
129
  /**
130
- * The prefix of the fontawesome icon
131
- * @default 'fas'
132
- */
130
+ * The prefix of the fontawesome icon
131
+ * @default 'fas'
132
+ */
133
133
  prefix?: LiteralUnion<FontAwesomePrefix>;
134
134
  /**
135
- * The assets of the fontawesome
136
- * @default 'fontawesome'
137
- */
135
+ * The assets of the fontawesome
136
+ * @default 'fontawesome'
137
+ */
138
138
  assets?: FontAwesomeAssetBuiltIn | IconAssetLink | (IconAssetLink | FontAwesomeAssetBuiltIn)[];
139
139
  }
140
140
  interface IconifyProvider extends IconProviderBase {
141
- provider?: "iconify";
141
+ provider?: 'iconify';
142
142
  /**
143
- * The prefix of the icon
144
- * @default ''
145
- */
143
+ * The prefix of the icon
144
+ * @default ''
145
+ */
146
146
  prefix?: LiteralUnion<IconifyPrefix>;
147
147
  }
148
- type FontAwesomeAssetBuiltIn = "fontawesome" | "fontawesome-with-brands";
148
+ type FontAwesomeAssetBuiltIn = 'fontawesome' | 'fontawesome-with-brands';
149
149
  type IconAssetLink = `//${string}` | `//${string}` | `https://${string}` | `http://${string}`;
150
- type FontAwesomePrefix = "fas" | "s" | "far" | "r" | "fal" | "l" | "fat" | "t" | "fads" | "ds" | "fass" | "ss" | "fasr" | "sr" | "fasl" | "sl" | "fast" | "st" | "fasds" | "sds" | "fab" | "b";
151
- type IconifyPrefix = "material-symbols" | "material-symbols-light" | "ic" | "mdi" | "mdi-light" | "line-md" | "solar" | "tabler" | "hugeicons" | "mingcute" | "ri" | "mynaui" | "iconamoon" | "iconoir" | "lucide" | "lucide-lab" | "uil" | "tdesign" | "si" | "bx" | "bxs" | "majesticons" | "gg" | "flowbite" | "basil" | "pixelarticons" | "pixel" | "akar-icons" | "ci" | "proicons" | "typcn" | "meteor-icons" | "prime" | "circum" | "fe" | "eos-icons" | "bitcoin-icons" | "humbleicons" | "uim" | "uit" | "uis" | "gridicons" | "mi" | "cuida" | "weui" | "duo-icons" | "svg-spinners" | "lets-icons" | "mage" | "stash" | "lineicons" | "icon-park-outline" | "icon-park-solid" | "icon-park-twotone" | "jam" | "guidance" | "carbon" | "ion" | "famicons" | "ant-design" | "lsicon" | "gravity-ui" | "cil" | "ep" | "charm" | "quill" | "bytesize" | "bi" | "rivet-icons" | "nimbus" | "formkit" | "fluent" | "ph" | "teenyicons" | "clarity" | "ix" | "octicon" | "memory" | "system-uicons" | "radix-icons" | "zondicons" | "uiw" | "maki" | "codex" | "ei" | "heroicons" | "pepicons-pop" | "pepicons-print" | "pepicons-pencil" | "f7" | "pajamas" | "garden" | "streamline" | "fa6-solid" | "fa6-regular" | "picon" | "ooui" | "oui" | "nrk" | "qlementine-icons" | "fluent-color" | "icon-park" | "marketeq" | "vscode-icons" | "codicon" | "material-icon-theme" | "file-icons" | "devicon" | "devicon-plain" | "catppuccin" | "skill-icons" | "unjs" | "simple-icons" | "logos" | "cib" | "fa6-brands" | "bxl" | "nonicons" | "arcticons" | "cbi" | "brandico" | "entypo-social" | "token" | "token-branded" | "cryptocurrency" | "cryptocurrency-color" | "openmoji" | "twemoji" | "noto" | "fluent-emoji" | "fluent-emoji-flat" | "fluent-emoji-high-contrast" | "noto-v1" | "emojione" | "emojione-monotone" | "emojione-v1" | "fxemoji" | "streamline-emojis" | "circle-flags" | "flag" | "flagpack" | "cif" | "gis" | "map" | "geo" | "game-icons" | "fad" | "academicons" | "wi" | "meteocons" | "healthicons" | "medical-icon" | "covid" | "la" | "eva" | "dashicons" | "flat-color-icons" | "entypo" | "foundation" | "raphael" | "icons8" | "iwwa" | "gala" | "heroicons-outline" | "heroicons-solid" | "fa-solid" | "fa-regular" | "fa-brands" | "fa" | "fluent-mdl2" | "fontisto" | "icomoon-free" | "subway" | "oi" | "wpf" | "simple-line-icons" | "et" | "el" | "vaadin" | "grommet-icons" | "whh" | "si-glyph" | "zmdi" | "ls" | "bpmn" | "flat-ui" | "vs" | "topcoat" | "il" | "websymbol" | "fontelico" | "ps" | "feather" | "mono-icons" | "pepicons";
150
+ type FontAwesomePrefix = 'fas' | 's' | 'far' | 'r' | 'fal' | 'l' | 'fat' | 't' | 'fads' | 'ds' | 'fass' | 'ss' | 'fasr' | 'sr' | 'fasl' | 'sl' | 'fast' | 'st' | 'fasds' | 'sds' | 'fab' | 'b';
151
+ type IconifyPrefix = 'material-symbols' | 'material-symbols-light' | 'ic' | 'mdi' | 'mdi-light' | 'line-md' | 'solar' | 'tabler' | 'hugeicons' | 'mingcute' | 'ri' | 'mynaui' | 'iconamoon' | 'iconoir' | 'lucide' | 'lucide-lab' | 'uil' | 'tdesign' | 'si' | 'bx' | 'bxs' | 'majesticons' | 'gg' | 'flowbite' | 'basil' | 'pixelarticons' | 'pixel' | 'akar-icons' | 'ci' | 'proicons' | 'typcn' | 'meteor-icons' | 'prime' | 'circum' | 'fe' | 'eos-icons' | 'bitcoin-icons' | 'humbleicons' | 'uim' | 'uit' | 'uis' | 'gridicons' | 'mi' | 'cuida' | 'weui' | 'duo-icons' | 'svg-spinners' | 'lets-icons' | 'mage' | 'stash' | 'lineicons' | 'icon-park-outline' | 'icon-park-solid' | 'icon-park-twotone' | 'jam' | 'guidance' | 'carbon' | 'ion' | 'famicons' | 'ant-design' | 'lsicon' | 'gravity-ui' | 'cil' | 'ep' | 'charm' | 'quill' | 'bytesize' | 'bi' | 'rivet-icons' | 'nimbus' | 'formkit' | 'fluent' | 'ph' | 'teenyicons' | 'clarity' | 'ix' | 'octicon' | 'memory' | 'system-uicons' | 'radix-icons' | 'zondicons' | 'uiw' | 'maki' | 'codex' | 'ei' | 'heroicons' | 'pepicons-pop' | 'pepicons-print' | 'pepicons-pencil' | 'f7' | 'pajamas' | 'garden' | 'streamline' | 'fa6-solid' | 'fa6-regular' | 'picon' | 'ooui' | 'oui' | 'nrk' | 'qlementine-icons' | 'fluent-color' | 'icon-park' | 'marketeq' | 'vscode-icons' | 'codicon' | 'material-icon-theme' | 'file-icons' | 'devicon' | 'devicon-plain' | 'catppuccin' | 'skill-icons' | 'unjs' | 'simple-icons' | 'logos' | 'cib' | 'fa6-brands' | 'bxl' | 'nonicons' | 'arcticons' | 'cbi' | 'brandico' | 'entypo-social' | 'token' | 'token-branded' | 'cryptocurrency' | 'cryptocurrency-color' | 'openmoji' | 'twemoji' | 'noto' | 'fluent-emoji' | 'fluent-emoji-flat' | 'fluent-emoji-high-contrast' | 'noto-v1' | 'emojione' | 'emojione-monotone' | 'emojione-v1' | 'fxemoji' | 'streamline-emojis' | 'circle-flags' | 'flag' | 'flagpack' | 'cif' | 'gis' | 'map' | 'geo' | 'game-icons' | 'fad' | 'academicons' | 'wi' | 'meteocons' | 'healthicons' | 'medical-icon' | 'covid' | 'la' | 'eva' | 'dashicons' | 'flat-color-icons' | 'entypo' | 'foundation' | 'raphael' | 'icons8' | 'iwwa' | 'gala' | 'heroicons-outline' | 'heroicons-solid' | 'fa-solid' | 'fa-regular' | 'fa-brands' | 'fa' | 'fluent-mdl2' | 'fontisto' | 'icomoon-free' | 'subway' | 'oi' | 'wpf' | 'simple-line-icons' | 'et' | 'el' | 'vaadin' | 'grommet-icons' | 'whh' | 'si-glyph' | 'zmdi' | 'ls' | 'bpmn' | 'flat-ui' | 'vs' | 'topcoat' | 'il' | 'websymbol' | 'fontelico' | 'ps' | 'feather' | 'mono-icons' | 'pepicons';
152
152
  type LiteralUnion<Union extends Base, Base = string> = Union | (Base & {
153
153
  zz_IGNORE_ME?: never;
154
154
  });
@@ -162,13 +162,13 @@ interface JSFiddleTokenMeta extends SizeOptions {
162
162
  }
163
163
  //#endregion
164
164
  //#region src/shared/npmTo.d.ts
165
- type NpmToPackageManager = "npm" | "pnpm" | "yarn" | "bun" | "deno";
165
+ type NpmToPackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' | 'deno';
166
166
  type NpmToOptions = NpmToPackageManager[] | {
167
167
  tabs?: NpmToPackageManager[];
168
168
  };
169
169
  //#endregion
170
170
  //#region src/shared/pdf.d.ts
171
- type PDFEmbedType = "iframe" | "embed" | "pdfjs";
171
+ type PDFEmbedType = 'iframe' | 'embed' | 'pdfjs';
172
172
  interface PDFTokenMeta extends SizeOptions {
173
173
  page?: number;
174
174
  noToolbar?: boolean;
@@ -178,28 +178,28 @@ interface PDFTokenMeta extends SizeOptions {
178
178
  }
179
179
  interface PDFOptions {
180
180
  /**
181
- * pdfjs url
182
- */
181
+ * pdfjs url
182
+ */
183
183
  pdfjsUrl?: string;
184
184
  }
185
185
  //#endregion
186
186
  //#region src/shared/plot.d.ts
187
187
  /**
188
- * 是否启用 `!! !!` markdown (该标记为非标准标记,脱离插件将不生效)
189
- */
188
+ * 是否启用 `!! !!` markdown (该标记为非标准标记,脱离插件将不生效)
189
+ */
190
190
  interface PlotOptions {
191
191
  /**
192
- * 触发方式
193
- *
194
- * @default 'hover'
195
- */
196
- trigger?: "hover" | "click";
197
- /**
198
- * 遮罩层效果
199
- *
200
- * @default 'mask'
201
- */
202
- effect?: "mask" | "blur";
192
+ * 触发方式
193
+ *
194
+ * @default 'hover'
195
+ */
196
+ trigger?: 'hover' | 'click';
197
+ /**
198
+ * 遮罩层效果
199
+ *
200
+ * @default 'mask'
201
+ */
202
+ effect?: 'mask' | 'blur';
203
203
  }
204
204
  //#endregion
205
205
  //#region src/shared/codeTree.d.ts
@@ -236,273 +236,273 @@ interface ReplEditorData {
236
236
  //#region src/shared/table.d.ts
237
237
  interface TableContainerOptions {
238
238
  /**
239
- * 表格对齐方式
240
- * - 'left': 左对齐
241
- * - 'center': 居中对齐
242
- * - 'right': 右对齐
243
- *
244
- * @default 'left'
245
- */
246
- align?: "left" | "center" | "right";
247
- /**
248
- * 表格复制
249
- * - true: 等同于 `all`,支持复制为 html 和 markdown 格式
250
- * - 'all': 支持复制为 html 和 markdown 格式
251
- * - 'html': 只支持复制为 html 格式
252
- * - 'md': 只支持复制为 markdown 格式
253
- * - `false`: 禁用复制
254
- *
255
- * @default true
256
- */
257
- copy?: boolean | "all" | "html" | "md";
258
- /**
259
- * 表格宽度是否为最大内容宽度
260
- *
261
- * 最大内容宽度时,行内元素不再自动换行,超出容器宽度时表格显示滚动条
262
- *
263
- * @default false
264
- */
239
+ * 表格对齐方式
240
+ * - 'left': 左对齐
241
+ * - 'center': 居中对齐
242
+ * - 'right': 右对齐
243
+ *
244
+ * @default 'left'
245
+ */
246
+ align?: 'left' | 'center' | 'right';
247
+ /**
248
+ * 表格复制
249
+ * - true: 等同于 `all`,支持复制为 html 和 markdown 格式
250
+ * - 'all': 支持复制为 html 和 markdown 格式
251
+ * - 'html': 只支持复制为 html 格式
252
+ * - 'md': 只支持复制为 markdown 格式
253
+ * - `false`: 禁用复制
254
+ *
255
+ * @default true
256
+ */
257
+ copy?: boolean | 'all' | 'html' | 'md';
258
+ /**
259
+ * 表格宽度是否为最大内容宽度
260
+ *
261
+ * 最大内容宽度时,行内元素不再自动换行,超出容器宽度时表格显示滚动条
262
+ *
263
+ * @default false
264
+ */
265
265
  maxContent?: boolean;
266
266
  }
267
267
  //#endregion
268
268
  //#region src/shared/plugin.d.ts
269
269
  interface MarkdownPowerPluginOptions {
270
270
  /**
271
- * 是否启用注释
272
- * @default false
273
- */
271
+ * 是否启用注释
272
+ * @default false
273
+ */
274
274
  annotation?: boolean;
275
275
  /**
276
- * 是否启用 abbr 语法
277
- * @default false
278
- */
276
+ * 是否启用 abbr 语法
277
+ * @default false
278
+ */
279
279
  abbr?: boolean;
280
280
  /**
281
- * 配置代码块分组
282
- */
281
+ * 配置代码块分组
282
+ */
283
283
  codeTabs?: CodeTabsOptions;
284
284
  /**
285
- * 是否启用 npm-to 容器
286
- */
285
+ * 是否启用 npm-to 容器
286
+ */
287
287
  npmTo?: boolean | NpmToOptions;
288
288
  /**
289
- * 是否启用 PDF 嵌入语法
290
- *
291
- * `@[pdf](pdf_url)`
292
- *
293
- * @default false
294
- */
289
+ * 是否启用 PDF 嵌入语法
290
+ *
291
+ * `@[pdf](pdf_url)`
292
+ *
293
+ * @default false
294
+ */
295
295
  pdf?: boolean | PDFOptions;
296
296
  /**
297
- * 是否启用 图标支持
298
- * - iconify - `::collect:icon_name::` => `<VPIcon name="collect:icon_name" />`
299
- * - iconfont - `::name::` => `<i class="iconfont icon-name"></i>`
300
- * - fontawesome - `::fas:name::` => `<i class="fa-solid fa-name"></i>`
301
- *
302
- * @default false
303
- */
297
+ * 是否启用 图标支持
298
+ * - iconify - `::collect:icon_name::` => `<VPIcon name="collect:icon_name" />`
299
+ * - iconfont - `::name::` => `<i class="iconfont icon-name"></i>`
300
+ * - fontawesome - `::fas:name::` => `<i class="fa-solid fa-name"></i>`
301
+ *
302
+ * @default false
303
+ */
304
304
  icon?: IconOptions;
305
305
  /**
306
- * 是否启用 iconify 图标嵌入语法
307
- *
308
- * `::collect:icon_name::`
309
- *
310
- * @default false
311
- * @deprecated use `icon` instead 该配置已弃用,请使用 `icon` 代替
312
- */
306
+ * 是否启用 iconify 图标嵌入语法
307
+ *
308
+ * `::collect:icon_name::`
309
+ *
310
+ * @default false
311
+ * @deprecated use `icon` instead 该配置已弃用,请使用 `icon` 代替
312
+ */
313
313
  icons?: boolean | IconOptions;
314
314
  /**
315
- * 是否启用 隐秘文本 语法
316
- *
317
- * `!!plot_content!!`
318
- *
319
- * @default false
320
- */
315
+ * 是否启用 隐秘文本 语法
316
+ *
317
+ * `!!plot_content!!`
318
+ *
319
+ * @default false
320
+ */
321
321
  plot?: boolean | PlotOptions;
322
322
  /**
323
- * 是否启用 timeline 语法
324
- *
325
- * ```md
326
- * ::: timeline
327
- * - title
328
- * time="Q1" icon="ri:clockwise-line" line="dashed" type="warning" color="red"
329
- *
330
- * xxx
331
- * :::
332
- * ```
333
- *
334
- * @default false
335
- */
323
+ * 是否启用 timeline 语法
324
+ *
325
+ * ```md
326
+ * ::: timeline
327
+ * - title
328
+ * time="Q1" icon="ri:clockwise-line" line="dashed" type="warning" color="red"
329
+ *
330
+ * xxx
331
+ * :::
332
+ * ```
333
+ *
334
+ * @default false
335
+ */
336
336
  timeline?: boolean;
337
337
  /**
338
- * 是否启用 collapse 折叠面板 语法
339
- *
340
- * ```md
341
- * ::: collapse accordion
342
- * - + title
343
- *
344
- * content
345
- *
346
- * - - title
347
- *
348
- * content
349
- * :::
350
- * ```
351
- *
352
- * @default false
353
- */
338
+ * 是否启用 collapse 折叠面板 语法
339
+ *
340
+ * ```md
341
+ * ::: collapse accordion
342
+ * - + title
343
+ *
344
+ * content
345
+ *
346
+ * - - title
347
+ *
348
+ * content
349
+ * :::
350
+ * ```
351
+ *
352
+ * @default false
353
+ */
354
354
  collapse?: boolean;
355
355
  /**
356
- * 是否启用 chat 容器 语法
357
- *
358
- * ```md
359
- * ::: chat
360
- * {:date}
361
- *
362
- * {user}
363
- * message
364
- *
365
- * {.}
366
- * message
367
- * :::
368
- * ```
369
- * @default false
370
- */
356
+ * 是否启用 chat 容器 语法
357
+ *
358
+ * ```md
359
+ * ::: chat
360
+ * {:date}
361
+ *
362
+ * {user}
363
+ * message
364
+ *
365
+ * {.}
366
+ * message
367
+ * :::
368
+ * ```
369
+ * @default false
370
+ */
371
371
  chat?: boolean;
372
372
  /**
373
- * 是否启用 field / field-group 容器
374
- *
375
- * @default false
376
- */
373
+ * 是否启用 field / field-group 容器
374
+ *
375
+ * @default false
376
+ */
377
377
  field?: boolean;
378
378
  /**
379
- * 是否启用 acfun 视频嵌入
380
- *
381
- * `@[acfun](acid)`
382
- *
383
- * @default false
384
- */
379
+ * 是否启用 acfun 视频嵌入
380
+ *
381
+ * `@[acfun](acid)`
382
+ *
383
+ * @default false
384
+ */
385
385
  acfun?: boolean;
386
386
  /**
387
- * 是否启用 bilibili 视频嵌入
388
- *
389
- * `@[bilibili](bid)`
390
- *
391
- * @default false
392
- */
387
+ * 是否启用 bilibili 视频嵌入
388
+ *
389
+ * `@[bilibili](bid)`
390
+ *
391
+ * @default false
392
+ */
393
393
  bilibili?: boolean;
394
394
  /**
395
- * 是否启用 youtube 视频嵌入
396
- *
397
- * `@[youtube](video_id)`
398
- *
399
- * @default false
400
- */
395
+ * 是否启用 youtube 视频嵌入
396
+ *
397
+ * `@[youtube](video_id)`
398
+ *
399
+ * @default false
400
+ */
401
401
  youtube?: boolean;
402
402
  /**
403
- * 是否启用 artPlayer 视频嵌入
404
- *
405
- * `@[artPlayer](url)`
406
- */
403
+ * 是否启用 artPlayer 视频嵌入
404
+ *
405
+ * `@[artPlayer](url)`
406
+ */
407
407
  artPlayer?: boolean;
408
408
  /**
409
- * 是否启用 audioReader 音频嵌入
410
- *
411
- * `@[audioReader](url)`
412
- */
409
+ * 是否启用 audioReader 音频嵌入
410
+ *
411
+ * `@[audioReader](url)`
412
+ */
413
413
  audioReader?: boolean;
414
414
  /**
415
- * 是否启用 codepen 嵌入
416
- *
417
- * `@[codepen](pen_id)`
418
- *
419
- * @default false
420
- */
415
+ * 是否启用 codepen 嵌入
416
+ *
417
+ * `@[codepen](pen_id)`
418
+ *
419
+ * @default false
420
+ */
421
421
  codepen?: boolean;
422
422
  /**
423
- * @deprecated
424
- */
423
+ * @deprecated
424
+ */
425
425
  replit?: boolean;
426
426
  /**
427
- * 是否启用 codeSandbox 嵌入
428
- *
429
- * `@[codesandbox](codesandbox_id)`
430
- *
431
- * @default false
432
- */
427
+ * 是否启用 codeSandbox 嵌入
428
+ *
429
+ * `@[codesandbox](codesandbox_id)`
430
+ *
431
+ * @default false
432
+ */
433
433
  codeSandbox?: boolean;
434
434
  /**
435
- * 是否启用 jsfiddle 嵌入
436
- *
437
- * `@[jsfiddle](jsfiddle_id)`
438
- *
439
- * @default false
440
- */
435
+ * 是否启用 jsfiddle 嵌入
436
+ *
437
+ * `@[jsfiddle](jsfiddle_id)`
438
+ *
439
+ * @default false
440
+ */
441
441
  jsfiddle?: boolean;
442
442
  /**
443
- * 是否启用 REPL 容器语法
444
- *
445
- * @default false
446
- */
443
+ * 是否启用 REPL 容器语法
444
+ *
445
+ * @default false
446
+ */
447
447
  repl?: false | ReplOptions;
448
448
  /**
449
- * 是否启用 文件树 容器语法
450
- *
451
- * @default false
452
- */
449
+ * 是否启用 文件树 容器语法
450
+ *
451
+ * @default false
452
+ */
453
453
  fileTree?: boolean | FileTreeOptions;
454
454
  /**
455
- * 是否启用 代码树 容器语法 和 嵌入语法
456
- *
457
- * ```md
458
- * ::: code-tree
459
- * :::
460
- * ```
461
- *
462
- * `@[code-tree](file_path)`
463
- *
464
- *
465
- * @default false
466
- */
455
+ * 是否启用 代码树 容器语法 和 嵌入语法
456
+ *
457
+ * ```md
458
+ * ::: code-tree
459
+ * :::
460
+ * ```
461
+ *
462
+ * `@[code-tree](file_path)`
463
+ *
464
+ *
465
+ * @default false
466
+ */
467
467
  codeTree?: boolean | CodeTreeOptions;
468
468
  /**
469
- * 是否启用 demo 语法
470
- */
469
+ * 是否启用 demo 语法
470
+ */
471
471
  demo?: boolean;
472
472
  /**
473
- * 是否启用 caniuse 嵌入语法
474
- *
475
- * `@[caniuse](feature_name)`
476
- *
477
- * @default false
478
- */
473
+ * 是否启用 caniuse 嵌入语法
474
+ *
475
+ * `@[caniuse](feature_name)`
476
+ *
477
+ * @default false
478
+ */
479
479
  caniuse?: boolean | CanIUseOptions;
480
480
  /**
481
- * 是否启用 table 容器语法,为表格提供增强功能
482
- *
483
- * - `copy`: 是否启用复制功能,支持复制为 html 格式 和 markdown 格式
484
- *
485
- * @default false
486
- */
481
+ * 是否启用 table 容器语法,为表格提供增强功能
482
+ *
483
+ * - `copy`: 是否启用复制功能,支持复制为 html 格式 和 markdown 格式
484
+ *
485
+ * @default false
486
+ */
487
487
  table?: boolean | TableContainerOptions;
488
488
  /**
489
- * 是否启用 自动填充 图片宽高属性
490
- *
491
- * __请注意,无论是否启用,该功能仅在构建生产包时生效__
492
- *
493
- * - 如果为 `true` ,等同于 `'local'`
494
- * - 如果为 `local`,则仅对本地图片 添加 width 和 height
495
- * - 如果为 `all`,则对所有图片(即包括 本地 和 远程) 添加 width 和 height
496
- *
497
- * 图片在加载过程中如果比较慢,从加载到完成的过程会导致页面布局不稳定,导致内容闪烁等。
498
- * 此功能通过给图片添加 `width` 和 `height` 属性来解决该问题。
499
- *
500
- * 请谨慎使用 `all` 选项,该选项会在构建阶段发起网络请求,尝试加载远程图片以获取图片尺寸信息,
501
- * 这可能会导致 构建时间变得更长(幸运的是获取尺寸信息只需要加载图片 几 KB 的数据包,因此耗时不会过长)
502
- *
503
- * @default false
504
- */
505
- imageSize?: boolean | "local" | "all";
489
+ * 是否启用 自动填充 图片宽高属性
490
+ *
491
+ * __请注意,无论是否启用,该功能仅在构建生产包时生效__
492
+ *
493
+ * - 如果为 `true` ,等同于 `'local'`
494
+ * - 如果为 `local`,则仅对本地图片 添加 width 和 height
495
+ * - 如果为 `all`,则对所有图片(即包括 本地 和 远程) 添加 width 和 height
496
+ *
497
+ * 图片在加载过程中如果比较慢,从加载到完成的过程会导致页面布局不稳定,导致内容闪烁等。
498
+ * 此功能通过给图片添加 `width` 和 `height` 属性来解决该问题。
499
+ *
500
+ * 请谨慎使用 `all` 选项,该选项会在构建阶段发起网络请求,尝试加载远程图片以获取图片尺寸信息,
501
+ * 这可能会导致 构建时间变得更长(幸运的是获取尺寸信息只需要加载图片 几 KB 的数据包,因此耗时不会过长)
502
+ *
503
+ * @default false
504
+ */
505
+ imageSize?: boolean | 'local' | 'all';
506
506
  }
507
507
  //#endregion
508
508
  //#region src/shared/replit.d.ts