@rspress/shared 1.42.1-canary-20240226 → 1.42.1

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/index.d.ts CHANGED
@@ -360,7 +360,7 @@ export declare interface MarkdownOptions {
360
360
  experimentalMdxRs?: boolean;
361
361
  }
362
362
 
363
- export declare const MDX_REGEXP: RegExp;
363
+ export declare const MDX_OR_MD_REGEXP: RegExp;
364
364
 
365
365
  export declare interface MdxRsOptions {
366
366
  /**
package/dist/index.js CHANGED
@@ -35,9 +35,9 @@ __webpack_require__.d(__webpack_exports__, {
35
35
  removeLeadingSlash: ()=>removeLeadingSlash,
36
36
  withoutBase: ()=>withoutBase,
37
37
  replaceVersion: ()=>replaceVersion,
38
- MDX_REGEXP: ()=>MDX_REGEXP,
39
38
  HASH_REGEXP: ()=>HASH_REGEXP,
40
39
  isSCM: ()=>isSCM,
40
+ MDX_OR_MD_REGEXP: ()=>MDX_OR_MD_REGEXP,
41
41
  normalizeHref: ()=>normalizeHref,
42
42
  normalizeSlash: ()=>normalizeSlash,
43
43
  normalizePosixPath: ()=>normalizePosixPath,
@@ -60,7 +60,7 @@ __webpack_require__.d(__webpack_exports__, {
60
60
  });
61
61
  const QUERY_REGEXP = /\?.*$/s;
62
62
  const HASH_REGEXP = /#.*$/s;
63
- const MDX_REGEXP = /\.mdx?$/;
63
+ const MDX_OR_MD_REGEXP = /\.mdx?$/;
64
64
  const APPEARANCE_KEY = 'rspress-theme-appearance';
65
65
  const SEARCH_INDEX_NAME = 'search_index';
66
66
  const RSPRESS_TEMP_DIR = '.rspress';
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const QUERY_REGEXP = /\?.*$/s;
2
2
  const HASH_REGEXP = /#.*$/s;
3
- const MDX_REGEXP = /\.mdx?$/;
3
+ const MDX_OR_MD_REGEXP = /\.mdx?$/;
4
4
  const APPEARANCE_KEY = 'rspress-theme-appearance';
5
5
  const SEARCH_INDEX_NAME = 'search_index';
6
6
  const RSPRESS_TEMP_DIR = '.rspress';
@@ -156,4 +156,4 @@ function withBase(url, base) {
156
156
  function removeBase(url, base) {
157
157
  return addLeadingSlash(url).replace(new RegExp(`^${normalizeSlash(base)}`), '');
158
158
  }
159
- export { APPEARANCE_KEY, DEFAULT_HIGHLIGHT_LANGUAGES, HASH_REGEXP, MDX_REGEXP, QUERY_REGEXP, RSPRESS_TEMP_DIR, SEARCH_INDEX_NAME, addLeadingSlash, addTrailingSlash, runtime_utils_cleanUrl as cleanUrl, inBrowser, isDataUrl, isDebugMode, isDevDebugMode, isExternalUrl, isProduction, isSCM, normalizeHref, normalizePosixPath, normalizeSlash, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutLang };
159
+ export { APPEARANCE_KEY, DEFAULT_HIGHLIGHT_LANGUAGES, HASH_REGEXP, MDX_OR_MD_REGEXP, QUERY_REGEXP, RSPRESS_TEMP_DIR, SEARCH_INDEX_NAME, addLeadingSlash, addTrailingSlash, runtime_utils_cleanUrl as cleanUrl, inBrowser, isDataUrl, isDebugMode, isDevDebugMode, isExternalUrl, isProduction, isSCM, normalizeHref, normalizePosixPath, normalizeSlash, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutLang };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.42.1-canary-20240226",
3
+ "version": "1.42.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rspress",