@rspress/shared 2.0.7 → 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.
@@ -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,12 +252,29 @@ 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
258
259
  * @default false
259
260
  */
260
261
  defaultWrapCode?: boolean;
262
+ /**
263
+ * Default code block overflow behavior when content exceeds the specified height.
264
+ */
265
+ defaultCodeOverflow?: {
266
+ /**
267
+ * Height threshold in pixels. When not set, no overflow behavior is applied.
268
+ */
269
+ height?: number;
270
+ /**
271
+ * How to handle code blocks exceeding the height.
272
+ * - `scroll`: fixed height with scrollbar
273
+ * - `fold`: collapsible with expand button
274
+ * @default 'scroll'
275
+ */
276
+ behavior?: 'fold' | 'scroll';
277
+ };
261
278
  /**
262
279
  * Register global components in mdx files
263
280
  */
@@ -412,6 +429,16 @@ export declare const parseUrl: (url: string) => {
412
429
 
413
430
  export declare const QUERY_REGEXP: RegExp;
414
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
+
415
442
  export declare type RemarkLinkOptions = {
416
443
  /**
417
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 { }