vitepress 1.0.0 → 1.0.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.
@@ -17,9 +17,8 @@ const closeScreen = inject('close-screen') as () => void
17
17
  :target="item.target"
18
18
  :rel="item.rel"
19
19
  @click="closeScreen"
20
- >
21
- {{ item.text }}
22
- </VPLink>
20
+ v-html="item.text"
21
+ />
23
22
  </template>
24
23
 
25
24
  <style scoped>
package/dist/node/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-fltVOIdt.js';
1
+ import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-CEVH7KNu.js';
2
2
  import { createLogger } from 'vite';
3
3
  import 'path';
4
4
  import 'url';
@@ -1,7 +1,7 @@
1
1
  import { normalizePath } from 'vite';
2
2
  export { loadEnv } from 'vite';
3
- import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-fltVOIdt.js';
4
- export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-fltVOIdt.js';
3
+ import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-CEVH7KNu.js';
4
+ export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-CEVH7KNu.js';
5
5
  import path from 'path';
6
6
  import 'crypto';
7
7
  import 'module';
@@ -12444,6 +12444,10 @@ function resolveAliases({ root, themeDir }, ssr) {
12444
12444
  {
12445
12445
  find: /^vitepress\/theme$/,
12446
12446
  replacement: join(DIST_CLIENT_PATH, "/theme-default/index.js")
12447
+ },
12448
+ {
12449
+ find: /^vue-demi$/,
12450
+ replacement: require$1.resolve("vitepress/vue-demi")
12447
12451
  }
12448
12452
  ];
12449
12453
  if (!ssr) {
@@ -20219,8 +20223,8 @@ var block_names = [
20219
20223
  'option',
20220
20224
  'p',
20221
20225
  'param',
20226
+ 'search',
20222
20227
  'section',
20223
- 'source',
20224
20228
  'summary',
20225
20229
  'table',
20226
20230
  'tbody',
@@ -26696,7 +26700,7 @@ function isWhiteSpace (code) {
26696
26700
 
26697
26701
  // Currently without astral characters support.
26698
26702
  function isPunctChar (ch) {
26699
- return P$1.test(ch)
26703
+ return P$1.test(ch) || regex$1.test(ch)
26700
26704
  }
26701
26705
 
26702
26706
  // Markdown ASCII punctuation characters.
@@ -26885,7 +26889,6 @@ function parseLinkDestination (str, start, max) {
26885
26889
  const result = {
26886
26890
  ok: false,
26887
26891
  pos: 0,
26888
- lines: 0,
26889
26892
  str: ''
26890
26893
  };
26891
26894
 
@@ -26956,52 +26959,66 @@ function parseLinkDestination (str, start, max) {
26956
26959
  //
26957
26960
 
26958
26961
 
26959
- function parseLinkTitle (str, start, max) {
26960
- let code, marker;
26961
- let lines = 0;
26962
+ // Parse link title within `str` in [start, max] range,
26963
+ // or continue previous parsing if `prev_state` is defined (equal to result of last execution).
26964
+ //
26965
+ function parseLinkTitle (str, start, max, prev_state) {
26966
+ let code;
26962
26967
  let pos = start;
26963
26968
 
26964
- const result = {
26969
+ const state = {
26970
+ // if `true`, this is a valid link title
26965
26971
  ok: false,
26972
+ // if `true`, this link can be continued on the next line
26973
+ can_continue: false,
26974
+ // if `ok`, it's the position of the first character after the closing marker
26966
26975
  pos: 0,
26967
- lines: 0,
26968
- str: ''
26976
+ // if `ok`, it's the unescaped title
26977
+ str: '',
26978
+ // expected closing marker character code
26979
+ marker: 0
26969
26980
  };
26970
26981
 
26971
- if (pos >= max) { return result }
26982
+ if (prev_state) {
26983
+ // this is a continuation of a previous parseLinkTitle call on the next line,
26984
+ // used in reference links only
26985
+ state.str = prev_state.str;
26986
+ state.marker = prev_state.marker;
26987
+ } else {
26988
+ if (pos >= max) { return state }
26972
26989
 
26973
- marker = str.charCodeAt(pos);
26990
+ let marker = str.charCodeAt(pos);
26991
+ if (marker !== 0x22 /* " */ && marker !== 0x27 /* ' */ && marker !== 0x28 /* ( */) { return state }
26974
26992
 
26975
- if (marker !== 0x22 /* " */ && marker !== 0x27 /* ' */ && marker !== 0x28 /* ( */) { return result }
26993
+ start++;
26994
+ pos++;
26976
26995
 
26977
- pos++;
26996
+ // if opening marker is "(", switch it to closing marker ")"
26997
+ if (marker === 0x28) { marker = 0x29; }
26978
26998
 
26979
- // if opening marker is "(", switch it to closing marker ")"
26980
- if (marker === 0x28) { marker = 0x29; }
26999
+ state.marker = marker;
27000
+ }
26981
27001
 
26982
27002
  while (pos < max) {
26983
27003
  code = str.charCodeAt(pos);
26984
- if (code === marker) {
26985
- result.pos = pos + 1;
26986
- result.lines = lines;
26987
- result.str = unescapeAll(str.slice(start + 1, pos));
26988
- result.ok = true;
26989
- return result
26990
- } else if (code === 0x28 /* ( */ && marker === 0x29 /* ) */) {
26991
- return result
26992
- } else if (code === 0x0A) {
26993
- lines++;
27004
+ if (code === state.marker) {
27005
+ state.pos = pos + 1;
27006
+ state.str += unescapeAll(str.slice(start, pos));
27007
+ state.ok = true;
27008
+ return state
27009
+ } else if (code === 0x28 /* ( */ && state.marker === 0x29 /* ) */) {
27010
+ return state
26994
27011
  } else if (code === 0x5C /* \ */ && pos + 1 < max) {
26995
27012
  pos++;
26996
- if (str.charCodeAt(pos) === 0x0A) {
26997
- lines++;
26998
- }
26999
27013
  }
27000
27014
 
27001
27015
  pos++;
27002
27016
  }
27003
27017
 
27004
- return result
27018
+ // no closing marker found, but this link title may continue on the next line (for references)
27019
+ state.can_continue = true;
27020
+ state.str += unescapeAll(str.slice(start, pos));
27021
+ return state
27005
27022
  }
27006
27023
 
27007
27024
  // Just a shortcut for bulk export
@@ -27151,7 +27168,7 @@ function Renderer () {
27151
27168
  * }
27152
27169
  * ```
27153
27170
  *
27154
- * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js)
27171
+ * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs)
27155
27172
  * for more details and examples.
27156
27173
  **/
27157
27174
  this.rules = assign$1({}, default_rules);
@@ -28664,6 +28681,14 @@ StateBlock.prototype.Token = Token;
28664
28681
  // GFM table, https://github.github.com/gfm/#tables-extension-
28665
28682
 
28666
28683
 
28684
+ // Limit the amount of empty autocompleted cells in a table,
28685
+ // see https://github.com/markdown-it/markdown-it/issues/1000,
28686
+ //
28687
+ // Both pulldown-cmark and commonmark-hs limit the number of cells this way to ~200k.
28688
+ // We set it to 65k, which can expand user input by a factor of x370
28689
+ // (256x256 square is 1.8kB expanded into 650kB).
28690
+ const MAX_AUTOCOMPLETED_CELLS = 0x10000;
28691
+
28667
28692
  function getLine (state, line) {
28668
28693
  const pos = state.bMarks[line] + state.tShift[line];
28669
28694
  const max = state.eMarks[line];
@@ -28819,6 +28844,7 @@ function table (state, startLine, endLine, silent) {
28819
28844
  state.push('thead_close', 'thead', -1);
28820
28845
 
28821
28846
  let tbodyLines;
28847
+ let autocompletedCells = 0;
28822
28848
 
28823
28849
  for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
28824
28850
  if (state.sCount[nextLine] < state.blkIndent) { break }
@@ -28839,6 +28865,11 @@ function table (state, startLine, endLine, silent) {
28839
28865
  if (columns.length && columns[0] === '') columns.shift();
28840
28866
  if (columns.length && columns[columns.length - 1] === '') columns.pop();
28841
28867
 
28868
+ // note: autocomplete count can be negative if user specifies more columns than header,
28869
+ // but that does not affect intended use (which is limiting expansion)
28870
+ autocompletedCells += columnCount - columns.length;
28871
+ if (autocompletedCells > MAX_AUTOCOMPLETED_CELLS) { break }
28872
+
28842
28873
  if (nextLine === startLine + 2) {
28843
28874
  const token_tbo = state.push('tbody_open', 'tbody', 1);
28844
28875
  token_tbo.map = tbodyLines = [startLine + 2, 0];
@@ -29582,8 +29613,6 @@ function list (state, startLine, endLine, silent) {
29582
29613
  }
29583
29614
 
29584
29615
  function reference (state, startLine, _endLine, silent) {
29585
- let lines = 0;
29586
-
29587
29616
  let pos = state.bMarks[startLine] + state.tShift[startLine];
29588
29617
  let max = state.eMarks[startLine];
29589
29618
  let nextLine = startLine + 1;
@@ -29593,45 +29622,53 @@ function reference (state, startLine, _endLine, silent) {
29593
29622
 
29594
29623
  if (state.src.charCodeAt(pos) !== 0x5B/* [ */) { return false }
29595
29624
 
29596
- // Simple check to quickly interrupt scan on [link](url) at the start of line.
29597
- // Can be useful on practice: https://github.com/markdown-it/markdown-it/issues/54
29598
- while (++pos < max) {
29599
- if (state.src.charCodeAt(pos) === 0x5D /* ] */ &&
29600
- state.src.charCodeAt(pos - 1) !== 0x5C/* \ */) {
29601
- if (pos + 1 === max) { return false }
29602
- if (state.src.charCodeAt(pos + 1) !== 0x3A/* : */) { return false }
29603
- break
29604
- }
29605
- }
29606
-
29607
- const endLine = state.lineMax;
29625
+ function getNextLine (nextLine) {
29626
+ const endLine = state.lineMax;
29608
29627
 
29609
- // jump line-by-line until empty one or EOF
29610
- const terminatorRules = state.md.block.ruler.getRules('reference');
29628
+ if (nextLine >= endLine || state.isEmpty(nextLine)) {
29629
+ // empty line or end of input
29630
+ return null
29631
+ }
29611
29632
 
29612
- const oldParentType = state.parentType;
29613
- state.parentType = 'reference';
29633
+ let isContinuation = false;
29614
29634
 
29615
- for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
29616
29635
  // this would be a code block normally, but after paragraph
29617
29636
  // it's considered a lazy continuation regardless of what's there
29618
- if (state.sCount[nextLine] - state.blkIndent > 3) { continue }
29637
+ if (state.sCount[nextLine] - state.blkIndent > 3) { isContinuation = true; }
29619
29638
 
29620
29639
  // quirk for blockquotes, this line should already be checked by that rule
29621
- if (state.sCount[nextLine] < 0) { continue }
29640
+ if (state.sCount[nextLine] < 0) { isContinuation = true; }
29641
+
29642
+ if (!isContinuation) {
29643
+ const terminatorRules = state.md.block.ruler.getRules('reference');
29644
+ const oldParentType = state.parentType;
29645
+ state.parentType = 'reference';
29646
+
29647
+ // Some tags can terminate paragraph without empty line.
29648
+ let terminate = false;
29649
+ for (let i = 0, l = terminatorRules.length; i < l; i++) {
29650
+ if (terminatorRules[i](state, nextLine, endLine, true)) {
29651
+ terminate = true;
29652
+ break
29653
+ }
29654
+ }
29622
29655
 
29623
- // Some tags can terminate paragraph without empty line.
29624
- let terminate = false;
29625
- for (let i = 0, l = terminatorRules.length; i < l; i++) {
29626
- if (terminatorRules[i](state, nextLine, endLine, true)) {
29627
- terminate = true;
29628
- break
29656
+ state.parentType = oldParentType;
29657
+ if (terminate) {
29658
+ // terminated by another block
29659
+ return null
29629
29660
  }
29630
29661
  }
29631
- if (terminate) { break }
29662
+
29663
+ const pos = state.bMarks[nextLine] + state.tShift[nextLine];
29664
+ const max = state.eMarks[nextLine];
29665
+
29666
+ // max + 1 explicitly includes the newline
29667
+ return state.src.slice(pos, max + 1)
29632
29668
  }
29633
29669
 
29634
- const str = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
29670
+ let str = state.src.slice(pos, max + 1);
29671
+
29635
29672
  max = str.length;
29636
29673
  let labelEnd = -1;
29637
29674
 
@@ -29643,11 +29680,21 @@ function reference (state, startLine, _endLine, silent) {
29643
29680
  labelEnd = pos;
29644
29681
  break
29645
29682
  } else if (ch === 0x0A /* \n */) {
29646
- lines++;
29683
+ const lineContent = getNextLine(nextLine);
29684
+ if (lineContent !== null) {
29685
+ str += lineContent;
29686
+ max = str.length;
29687
+ nextLine++;
29688
+ }
29647
29689
  } else if (ch === 0x5C /* \ */) {
29648
29690
  pos++;
29649
29691
  if (pos < max && str.charCodeAt(pos) === 0x0A) {
29650
- lines++;
29692
+ const lineContent = getNextLine(nextLine);
29693
+ if (lineContent !== null) {
29694
+ str += lineContent;
29695
+ max = str.length;
29696
+ nextLine++;
29697
+ }
29651
29698
  }
29652
29699
  }
29653
29700
  }
@@ -29659,7 +29706,12 @@ function reference (state, startLine, _endLine, silent) {
29659
29706
  for (pos = labelEnd + 2; pos < max; pos++) {
29660
29707
  const ch = str.charCodeAt(pos);
29661
29708
  if (ch === 0x0A) {
29662
- lines++;
29709
+ const lineContent = getNextLine(nextLine);
29710
+ if (lineContent !== null) {
29711
+ str += lineContent;
29712
+ max = str.length;
29713
+ nextLine++;
29714
+ }
29663
29715
  } else if (isSpace(ch)) ; else {
29664
29716
  break
29665
29717
  }
@@ -29674,11 +29726,10 @@ function reference (state, startLine, _endLine, silent) {
29674
29726
  if (!state.md.validateLink(href)) { return false }
29675
29727
 
29676
29728
  pos = destRes.pos;
29677
- lines += destRes.lines;
29678
29729
 
29679
29730
  // save cursor state, we could require to rollback later
29680
29731
  const destEndPos = pos;
29681
- const destEndLineNo = lines;
29732
+ const destEndLineNo = nextLine;
29682
29733
 
29683
29734
  // [label]: destination 'title'
29684
29735
  // ^^^ skipping those spaces
@@ -29686,7 +29737,12 @@ function reference (state, startLine, _endLine, silent) {
29686
29737
  for (; pos < max; pos++) {
29687
29738
  const ch = str.charCodeAt(pos);
29688
29739
  if (ch === 0x0A) {
29689
- lines++;
29740
+ const lineContent = getNextLine(nextLine);
29741
+ if (lineContent !== null) {
29742
+ str += lineContent;
29743
+ max = str.length;
29744
+ nextLine++;
29745
+ }
29690
29746
  } else if (isSpace(ch)) ; else {
29691
29747
  break
29692
29748
  }
@@ -29694,17 +29750,25 @@ function reference (state, startLine, _endLine, silent) {
29694
29750
 
29695
29751
  // [label]: destination 'title'
29696
29752
  // ^^^^^^^ parse this
29697
- const titleRes = state.md.helpers.parseLinkTitle(str, pos, max);
29753
+ let titleRes = state.md.helpers.parseLinkTitle(str, pos, max);
29754
+ while (titleRes.can_continue) {
29755
+ const lineContent = getNextLine(nextLine);
29756
+ if (lineContent === null) break
29757
+ str += lineContent;
29758
+ pos = max;
29759
+ max = str.length;
29760
+ nextLine++;
29761
+ titleRes = state.md.helpers.parseLinkTitle(str, pos, max, titleRes);
29762
+ }
29698
29763
  let title;
29699
29764
 
29700
29765
  if (pos < max && start !== pos && titleRes.ok) {
29701
29766
  title = titleRes.str;
29702
29767
  pos = titleRes.pos;
29703
- lines += titleRes.lines;
29704
29768
  } else {
29705
29769
  title = '';
29706
29770
  pos = destEndPos;
29707
- lines = destEndLineNo;
29771
+ nextLine = destEndLineNo;
29708
29772
  }
29709
29773
 
29710
29774
  // skip trailing spaces until the rest of the line
@@ -29720,7 +29784,7 @@ function reference (state, startLine, _endLine, silent) {
29720
29784
  // but it could still be a valid reference if we roll back
29721
29785
  title = '';
29722
29786
  pos = destEndPos;
29723
- lines = destEndLineNo;
29787
+ nextLine = destEndLineNo;
29724
29788
  while (pos < max) {
29725
29789
  const ch = str.charCodeAt(pos);
29726
29790
  if (!isSpace(ch)) { break }
@@ -29751,9 +29815,7 @@ function reference (state, startLine, _endLine, silent) {
29751
29815
  state.env.references[label] = { title, href };
29752
29816
  }
29753
29817
 
29754
- state.parentType = oldParentType;
29755
-
29756
- state.line = startLine + lines + 1;
29818
+ state.line = nextLine;
29757
29819
  return true
29758
29820
  }
29759
29821
 
@@ -29772,9 +29834,9 @@ const attribute = '(?:\\s+' + attr_name + '(?:\\s*=\\s*' + attr_value + ')?)';
29772
29834
  const open_tag = '<[A-Za-z][A-Za-z0-9\\-]*' + attribute + '*\\s*\\/?>';
29773
29835
 
29774
29836
  const close_tag = '<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>';
29775
- const comment = '<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->';
29837
+ const comment = '<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->';
29776
29838
  const processing = '<[?][\\s\\S]*?[?]>';
29777
- const declaration = '<![A-Z]+\\s+[^>]*>';
29839
+ const declaration = '<![A-Za-z][^>]*>';
29778
29840
  const cdata = '<!\\[CDATA\\[[\\s\\S]*?\\]\\]>';
29779
29841
 
29780
29842
  const HTML_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + '|' + comment +
@@ -30235,9 +30297,6 @@ StateInline.prototype.push = function (type, tag, nesting) {
30235
30297
  // - canSplitWord - determine if these markers can be found inside a word
30236
30298
  //
30237
30299
  StateInline.prototype.scanDelims = function (start, canSplitWord) {
30238
- let can_open, can_close;
30239
- let left_flanking = true;
30240
- let right_flanking = true;
30241
30300
  const max = this.posMax;
30242
30301
  const marker = this.src.charCodeAt(start);
30243
30302
 
@@ -30258,29 +30317,13 @@ StateInline.prototype.scanDelims = function (start, canSplitWord) {
30258
30317
  const isLastWhiteSpace = isWhiteSpace(lastChar);
30259
30318
  const isNextWhiteSpace = isWhiteSpace(nextChar);
30260
30319
 
30261
- if (isNextWhiteSpace) {
30262
- left_flanking = false;
30263
- } else if (isNextPunctChar) {
30264
- if (!(isLastWhiteSpace || isLastPunctChar)) {
30265
- left_flanking = false;
30266
- }
30267
- }
30320
+ const left_flanking =
30321
+ !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
30322
+ const right_flanking =
30323
+ !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
30268
30324
 
30269
- if (isLastWhiteSpace) {
30270
- right_flanking = false;
30271
- } else if (isLastPunctChar) {
30272
- if (!(isNextWhiteSpace || isNextPunctChar)) {
30273
- right_flanking = false;
30274
- }
30275
- }
30276
-
30277
- if (!canSplitWord) {
30278
- can_open = left_flanking && (!right_flanking || isLastPunctChar);
30279
- can_close = right_flanking && (!left_flanking || isNextPunctChar);
30280
- } else {
30281
- can_open = left_flanking;
30282
- can_close = right_flanking;
30283
- }
30325
+ const can_open = left_flanking && (canSplitWord || !right_flanking || isLastPunctChar);
30326
+ const can_close = right_flanking && (canSplitWord || !left_flanking || isNextPunctChar);
30284
30327
 
30285
30328
  return { can_open, can_close, length: count }
30286
30329
  };
@@ -30348,7 +30391,7 @@ function text$1 (state, silent) {
30348
30391
  // Alternative implementation, for memory.
30349
30392
  //
30350
30393
  // It costs 10% of performance, but allows extend terminators list, if place it
30351
- // to `ParcerInline` property. Probably, will switch to it sometime, such
30394
+ // to `ParserInline` property. Probably, will switch to it sometime, such
30352
30395
  // flexibility required.
30353
30396
 
30354
30397
  /*
@@ -33236,12 +33279,12 @@ function normalizeLinkText (url) {
33236
33279
  * MarkdownIt provides named presets as a convenience to quickly
33237
33280
  * enable/disable active syntax rules and options for common use cases.
33238
33281
  *
33239
- * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.js) -
33282
+ * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.mjs) -
33240
33283
  * configures parser to strict [CommonMark](http://commonmark.org/) mode.
33241
- * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.js) -
33284
+ * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.mjs) -
33242
33285
  * similar to GFM, used when no preset name given. Enables all available rules,
33243
33286
  * but still without html, typographer & autolinker.
33244
- * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.js) -
33287
+ * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.mjs) -
33245
33288
  * all rules disabled. Useful to quickly setup your config via `.enable()`.
33246
33289
  * For example, when you need only `bold` and `italic` markup and nothing else.
33247
33290
  *
@@ -33258,7 +33301,7 @@ function normalizeLinkText (url) {
33258
33301
  * Can be useful for external highlighters.
33259
33302
  * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.
33260
33303
  * - __typographer__ - `false`. Set `true` to enable [some language-neutral
33261
- * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js) +
33304
+ * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs) +
33262
33305
  * quotes beautification (smartquotes).
33263
33306
  * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement
33264
33307
  * pairs, when typographer enabled and smartquotes on. For example, you can
@@ -33384,7 +33427,7 @@ function MarkdownIt (presetName, options) {
33384
33427
  * md.renderer.rules['my_token'] = myToken
33385
33428
  * ```
33386
33429
  *
33387
- * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js).
33430
+ * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs).
33388
33431
  **/
33389
33432
  this.renderer = new Renderer();
33390
33433
 
@@ -33392,7 +33435,7 @@ function MarkdownIt (presetName, options) {
33392
33435
  * MarkdownIt#linkify -> LinkifyIt
33393
33436
  *
33394
33437
  * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
33395
- * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.js)
33438
+ * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.mjs)
33396
33439
  * rule.
33397
33440
  **/
33398
33441
  this.linkify = new LinkifyIt();
@@ -46463,7 +46506,7 @@ function escapeHtml(string) {
46463
46506
 
46464
46507
  var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
46465
46508
 
46466
- var version = "1.0.0";
46509
+ var version = "1.0.2";
46467
46510
 
46468
46511
  async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
46469
46512
  const routePath = `/${page.replace(/\.md$/, "")}`;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * vue-demi v0.14.7
3
+ * Copyright (c) 2020-present, Anthony Fu
4
+ * @license MIT
5
+ */
6
+
7
+ import * as Vue from 'vue'
8
+
9
+ var isVue2 = false
10
+ var isVue3 = true
11
+ var Vue2 = undefined
12
+
13
+ function install() {}
14
+
15
+ export function set(target, key, val) {
16
+ if (Array.isArray(target)) {
17
+ target.length = Math.max(target.length, key)
18
+ target.splice(key, 1, val)
19
+ return val
20
+ }
21
+ target[key] = val
22
+ return val
23
+ }
24
+
25
+ export function del(target, key) {
26
+ if (Array.isArray(target)) {
27
+ target.splice(key, 1)
28
+ return
29
+ }
30
+ delete target[key]
31
+ }
32
+
33
+ export * from 'vue'
34
+ export { Vue, Vue2, isVue2, isVue3, install }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "vitepress",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Vite & Vue powered static site generator",
5
5
  "type": "module",
6
- "packageManager": "pnpm@8.15.4",
6
+ "packageManager": "pnpm@8.15.5",
7
7
  "main": "dist/node/index.js",
8
8
  "types": "types/index.d.ts",
9
9
  "exports": {
@@ -24,6 +24,9 @@
24
24
  "./theme-without-fonts": {
25
25
  "types": "./theme-without-fonts.d.ts",
26
26
  "default": "./dist/client/theme-default/without-fonts.js"
27
+ },
28
+ "./vue-demi": {
29
+ "default": "./lib/vue-demi.mjs"
27
30
  }
28
31
  },
29
32
  "bin": {
@@ -36,7 +39,8 @@
36
39
  "template",
37
40
  "client.d.ts",
38
41
  "theme.d.ts",
39
- "theme-without-fonts.d.ts"
42
+ "theme-without-fonts.d.ts",
43
+ "lib"
40
44
  ],
41
45
  "repository": {
42
46
  "type": "git",
@@ -56,8 +60,8 @@
56
60
  "dependencies": {
57
61
  "@docsearch/css": "^3.6.0",
58
62
  "@docsearch/js": "^3.6.0",
59
- "@shikijs/core": "^1.1.7",
60
- "@shikijs/transformers": "^1.1.7",
63
+ "@shikijs/core": "^1.2.0",
64
+ "@shikijs/transformers": "^1.2.0",
61
65
  "@types/markdown-it": "^13.0.7",
62
66
  "@vitejs/plugin-vue": "^5.0.4",
63
67
  "@vue/devtools-api": "^7.0.16",
@@ -66,13 +70,13 @@
66
70
  "focus-trap": "^7.5.4",
67
71
  "mark.js": "8.11.1",
68
72
  "minisearch": "^6.3.0",
69
- "shiki": "^1.1.7",
73
+ "shiki": "^1.2.0",
70
74
  "vite": "^5.2.2",
71
75
  "vue": "^3.4.21"
72
76
  },
73
77
  "peerDependencies": {
74
- "markdown-it-mathjax3": "^4.3.2",
75
- "postcss": "^8.4.35"
78
+ "markdown-it-mathjax3": "^4",
79
+ "postcss": "^8"
76
80
  },
77
81
  "peerDependenciesMeta": {
78
82
  "markdown-it-mathjax3": {
@@ -108,7 +112,7 @@
108
112
  "@types/markdown-it-emoji": "^2.0.4",
109
113
  "@types/micromatch": "^4.0.6",
110
114
  "@types/minimist": "^1.2.5",
111
- "@types/node": "^20.11.25",
115
+ "@types/node": "^20.11.30",
112
116
  "@types/postcss-prefix-selector": "^1.16.3",
113
117
  "@types/prompts": "^2.4.9",
114
118
  "@vue/shared": "^3.4.21",
@@ -116,17 +120,17 @@
116
120
  "conventional-changelog-cli": "^4.1.0",
117
121
  "cross-spawn": "^7.0.3",
118
122
  "debug": "^4.3.4",
119
- "esbuild": "^0.20.1",
123
+ "esbuild": "^0.20.2",
120
124
  "escape-html": "^1.0.3",
121
125
  "execa": "^8.0.1",
122
126
  "fast-glob": "^3.3.2",
123
127
  "fs-extra": "^11.2.0",
124
- "get-port": "^7.0.0",
128
+ "get-port": "^7.1.0",
125
129
  "gray-matter": "^4.0.3",
126
130
  "lint-staged": "^15.2.2",
127
131
  "lodash.template": "^4.5.0",
128
132
  "lru-cache": "^10.2.0",
129
- "markdown-it": "^14.0.0",
133
+ "markdown-it": "^14.1.0",
130
134
  "markdown-it-anchor": "^8.6.7",
131
135
  "markdown-it-attrs": "^4.1.6",
132
136
  "markdown-it-container": "^4.0.0",
@@ -148,17 +152,17 @@
148
152
  "prompts": "^2.4.2",
149
153
  "punycode": "^2.3.1",
150
154
  "rimraf": "^5.0.5",
151
- "rollup": "^4.12.1",
155
+ "rollup": "^4.13.0",
152
156
  "rollup-plugin-dts": "^6.1.0",
153
157
  "rollup-plugin-esbuild": "^6.1.1",
154
158
  "semver": "^7.6.0",
155
- "simple-git-hooks": "^2.10.0",
159
+ "simple-git-hooks": "^2.11.0",
156
160
  "sirv": "^2.0.4",
157
161
  "sitemap": "^7.1.1",
158
162
  "supports-color": "^9.4.0",
159
- "typescript": "^5.4.2",
160
- "vitest": "^1.3.1",
161
- "vue-tsc": "^2.0.6",
163
+ "typescript": "^5.4.3",
164
+ "vitest": "^1.4.0",
165
+ "vue-tsc": "^2.0.7",
162
166
  "wait-on": "^7.2.0"
163
167
  },
164
168
  "simple-git-hooks": {