@rspress/shared 2.0.8 → 2.0.9
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/584.js +710 -0
- package/dist/github-slugger.d.ts +47 -0
- package/dist/github-slugger.js +29 -0
- package/dist/gray-matter.d.ts +14 -0
- package/dist/gray-matter.js +2772 -0
- package/dist/gray-matter.js.LICENSE.txt +13 -0
- package/dist/index.d.ts +11 -0
- package/dist/lodash-es.d.ts +14 -0
- package/dist/lodash-es.js +678 -0
- package/dist/node-utils.d.ts +11 -0
- package/dist/node-utils.js +4 -6
- package/dist/rslib-runtime.js +38 -0
- package/package.json +18 -5
- package/LICENSE +0 -21
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015, Jon Schlinkert.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -252,6 +252,7 @@ export declare interface MarkdownOptions {
|
|
|
252
252
|
remarkPlugins?: PluggableList;
|
|
253
253
|
rehypePlugins?: PluggableList;
|
|
254
254
|
link?: RemarkLinkOptions;
|
|
255
|
+
image?: RemarkImageOptions;
|
|
255
256
|
showLineNumbers?: boolean;
|
|
256
257
|
/**
|
|
257
258
|
* Whether to wrap code by default
|
|
@@ -428,6 +429,16 @@ export declare const parseUrl: (url: string) => {
|
|
|
428
429
|
|
|
429
430
|
export declare const QUERY_REGEXP: RegExp;
|
|
430
431
|
|
|
432
|
+
export declare type RemarkImageOptions = {
|
|
433
|
+
/**
|
|
434
|
+
* Whether to enable check dead images
|
|
435
|
+
* @default true
|
|
436
|
+
*/
|
|
437
|
+
checkDeadImages?: boolean | {
|
|
438
|
+
excludes: string[] | ((url: string) => boolean);
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
|
|
431
442
|
export declare type RemarkLinkOptions = {
|
|
432
443
|
/**
|
|
433
444
|
* Whether to enable check dead links
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { chunk } from 'lodash';
|
|
2
|
+
import { debounce } from 'lodash';
|
|
3
|
+
import { groupBy } from 'lodash';
|
|
4
|
+
import { mergeWith } from 'lodash';
|
|
5
|
+
|
|
6
|
+
export { chunk }
|
|
7
|
+
|
|
8
|
+
export { debounce }
|
|
9
|
+
|
|
10
|
+
export { groupBy }
|
|
11
|
+
|
|
12
|
+
export { mergeWith }
|
|
13
|
+
|
|
14
|
+
export { }
|