fumadocs-core 16.6.17 → 16.7.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.
Files changed (130) hide show
  1. package/dist/{advanced-BZKQwtss.js → advanced-B6xijHpk.js} +1 -1
  2. package/dist/{algolia-BcNfAtYC.d.ts → algolia-CV1p_BGs.d.ts} +1 -1
  3. package/dist/breadcrumb.d.ts +1 -1
  4. package/dist/{build-doc-BotvE-sS.js → build-doc-B5-DlWgs.js} +1 -1
  5. package/dist/{client-9fKBmECY.d.ts → client-DwXJpdzf.d.ts} +8 -4
  6. package/dist/content/mdx/preset-bundler.d.ts +7 -7
  7. package/dist/content/mdx/preset-bundler.js +1 -1
  8. package/dist/content/mdx/preset-runtime.d.ts +7 -7
  9. package/dist/content/mdx/preset-runtime.js +1 -1
  10. package/dist/content/toc.d.ts +1 -1
  11. package/dist/highlight/client.js +5 -7
  12. package/dist/highlight/index.d.ts +10 -11
  13. package/dist/highlight/index.js +15 -42
  14. package/dist/highlight/shiki/full.d.ts +8 -0
  15. package/dist/highlight/shiki/full.js +24 -0
  16. package/dist/highlight/shiki/index.d.ts +2 -0
  17. package/dist/highlight/shiki/index.js +22 -0
  18. package/dist/highlight/shiki/react.d.ts +24 -0
  19. package/dist/highlight/shiki/react.js +49 -0
  20. package/dist/i18n/index.d.ts +1 -1
  21. package/dist/i18n/middleware.d.ts +1 -1
  22. package/dist/index-BJnfEyTc.d.ts +22 -0
  23. package/dist/{index-Cq7hKKw4.d.ts → index-CnCCZH9P2.d.ts} +1 -1
  24. package/dist/{index-C5QIKZDy.d.ts → index-CyQWmGWm.d.ts} +3 -3
  25. package/dist/{index-BDymJpj4.d.ts → index-DCiVcIWs.d.ts} +1 -1
  26. package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
  27. package/dist/mdx-plugins/index.d.ts +18 -17
  28. package/dist/mdx-plugins/index.js +2 -1
  29. package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
  30. package/dist/mdx-plugins/rehype-code.core.js +2 -1
  31. package/dist/mdx-plugins/rehype-code.d.ts +2 -2
  32. package/dist/mdx-plugins/rehype-code.js +10 -9
  33. package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
  34. package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
  35. package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
  36. package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
  37. package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
  38. package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
  39. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  40. package/dist/mdx-plugins/remark-image.d.ts +1 -1
  41. package/dist/mdx-plugins/remark-llms.d.ts +2 -50
  42. package/dist/mdx-plugins/remark-llms.js +30 -6
  43. package/dist/mdx-plugins/remark-llms.runtime.d.ts +11 -0
  44. package/dist/mdx-plugins/remark-llms.runtime.js +24 -0
  45. package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
  46. package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
  47. package/dist/mdx-plugins/remark-npm.d.ts +1 -1
  48. package/dist/mdx-plugins/remark-steps.d.ts +1 -1
  49. package/dist/mdx-plugins/remark-structure.d.ts +1 -1
  50. package/dist/mdx-plugins/remark-structure.js +2 -2
  51. package/dist/mdx-plugins/stringifier.d.ts +1 -1
  52. package/dist/mdx-plugins/stringifier.js +5 -2
  53. package/dist/page-tree/index.d.ts +2 -2
  54. package/dist/{rehype-code-B-bxz1EN.d.ts → rehype-code-Cf00Zu8M.d.ts} +2 -2
  55. package/dist/{rehype-code.core-AzcK6-sL.js → rehype-code.core-23F1yz08.js} +29 -27
  56. package/dist/{rehype-code.core-Ck9MowQQ.d.ts → rehype-code.core-B7htbckM.d.ts} +7 -7
  57. package/dist/{remark-heading-DR_pmcPV.d.ts → remark-heading-CejYcqcD.d.ts} +1 -1
  58. package/dist/remark-llms-Bjyq1jdk.d.ts +66 -0
  59. package/dist/{remark-structure-CILz6H_T.d.ts → remark-structure-c-gm2PCy.d.ts} +1 -1
  60. package/dist/search/algolia.d.ts +1 -1
  61. package/dist/search/client/algolia.d.ts +1 -1
  62. package/dist/search/client/fetch.d.ts +1 -1
  63. package/dist/search/client/flexsearch-static.d.ts +1 -1
  64. package/dist/search/client/flexsearch-static.js +1 -1
  65. package/dist/search/client/mixedbread.d.ts +1 -1
  66. package/dist/search/client/mixedbread.js +1 -1
  67. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  68. package/dist/search/client/orama-cloud-legacy.js +1 -1
  69. package/dist/search/client/orama-cloud.d.ts +1 -1
  70. package/dist/search/client/orama-cloud.js +1 -1
  71. package/dist/search/client/orama-static.d.ts +1 -1
  72. package/dist/search/client/orama-static.js +33 -28
  73. package/dist/search/client.d.ts +1 -1
  74. package/dist/search/flexsearch.d.ts +4 -4
  75. package/dist/search/flexsearch.js +3 -3
  76. package/dist/search/index.d.ts +1 -1
  77. package/dist/search/mixedbread.d.ts +2 -2
  78. package/dist/search/mixedbread.js +2 -2
  79. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  80. package/dist/search/orama-cloud.d.ts +1 -1
  81. package/dist/search/server.d.ts +1 -1
  82. package/dist/search/server.js +3 -3
  83. package/dist/{server-BVKBFI75.d.ts → server-BzKuUFUU.d.ts} +5 -5
  84. package/dist/source/client/index.d.ts +1 -1
  85. package/dist/source/index.d.ts +1 -1
  86. package/dist/source/index.js +2 -2
  87. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  88. package/dist/source/plugins/lucide-icons.js +1 -1
  89. package/dist/source/plugins/slugs.d.ts +1 -1
  90. package/dist/source/plugins/slugs.js +1 -1
  91. package/dist/source/plugins/status-badges.d.ts +2 -2
  92. package/dist/{stringifier-CugaOXsb.d.ts → stringifier-l_KdmdPb.d.ts} +5 -5
  93. package/dist/toc.d.ts +1 -1
  94. package/dist/toc.js +15 -16
  95. package/dist/types-Dr0HqbXP.d.ts +5 -0
  96. package/dist/utils-CLsGsTYQ.js +47 -0
  97. package/package.json +11 -11
  98. package/dist/config-CsHj5oV8.d.ts +0 -16
  99. package/dist/highlight/config.d.ts +0 -2
  100. package/dist/highlight/config.js +0 -27
  101. package/dist/highlight/core/client.d.ts +0 -31
  102. package/dist/highlight/core/client.js +0 -65
  103. package/dist/highlight/core/index.d.ts +0 -2
  104. package/dist/highlight/core/index.js +0 -62
  105. package/dist/index-DSpA1JO4.d.ts +0 -27
  106. package/dist/types-3ccArm6T.d.ts +0 -6
  107. /package/dist/{codeblock-utils-DBm7VMdU.d.ts → codeblock-utils-DuhKfwET.d.ts} +0 -0
  108. /package/dist/{definitions-AAtMxt2w.d.ts → definitions-Cb3qV_RZ.d.ts} +0 -0
  109. /package/dist/{endpoint-8Kwx_qOv.js → endpoint-Bs6bqGYq.js} +0 -0
  110. /package/dist/{icon-DphlWQaF.js → icon-CfEtMzdP.js} +0 -0
  111. /package/dist/{index-Ch9QIdT6.d.ts → index-CQ5TBOzH.d.ts} +0 -0
  112. /package/dist/{index-CsYVANvj.d.ts → index-DAzunKMp.d.ts} +0 -0
  113. /package/dist/{path-CYZclEPY.js → path-CL7hf0GY.js} +0 -0
  114. /package/dist/{rehype-toc-BLsqqf_o.d.ts → rehype-toc-DPrrpvXd.d.ts} +0 -0
  115. /package/dist/{remark-admonition-DNKm8XsG.d.ts → remark-admonition-0gZM40ZU.d.ts} +0 -0
  116. /package/dist/{remark-code-tab-G7U6TydN.d.ts → remark-code-tab-Dk79zZwn.d.ts} +0 -0
  117. /package/dist/{remark-directive-admonition-gkHghBYa.d.ts → remark-directive-admonition-CxFIkQ_i.d.ts} +0 -0
  118. /package/dist/{remark-feedback-block-90yTnyTC.d.ts → remark-feedback-block-CehhnqT0.d.ts} +0 -0
  119. /package/dist/{remark-gfm-C2GLsTxH.d.ts → remark-gfm-DIHBRjLx.d.ts} +0 -0
  120. /package/dist/{remark-image-CP5w6VTd.d.ts → remark-image-DQlJevNY.d.ts} +0 -0
  121. /package/dist/{remark-mdx-files-C7gYD1Bn.d.ts → remark-mdx-files-C50nFvnY.d.ts} +0 -0
  122. /package/dist/{remark-mdx-mermaid-CeZ2Fepw.d.ts → remark-mdx-mermaid-BkA2vurg.d.ts} +0 -0
  123. /package/dist/{remark-npm-BMre-WzD.d.ts → remark-npm-7SDuqMc6.d.ts} +0 -0
  124. /package/dist/{remark-steps-9ooYFxUA.d.ts → remark-steps-DsnXM6Xj.d.ts} +0 -0
  125. /package/dist/{remove-markdown-C5S415Dz.js → remove-markdown-Cte6pwYx.js} +0 -0
  126. /package/dist/{remove-undefined-Bfj4SlGF.js → remove-undefined-PK1FA5gc.js} +0 -0
  127. /package/dist/{toc-DmllTzmG.d.ts → toc-LAWJi-w9.d.ts} +0 -0
  128. /package/dist/{util-CT8y1EgJ.js → util-BnfE-P1F.js} +0 -0
  129. /package/dist/{util-D_kBfbUQ.d.ts → util-D2LMvKsn.d.ts} +0 -0
  130. /package/dist/{utils-ktUGajEb.js → utils-D_KDPEof.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { createContentHighlighter } from "./search/index.js";
2
- import { t as removeUndefined } from "./remove-undefined-Bfj4SlGF.js";
2
+ import { t as removeUndefined } from "./remove-undefined-PK1FA5gc.js";
3
3
  import { getByID, search } from "@orama/orama";
4
4
  //#region src/search/orama/search/simple.ts
5
5
  async function searchSimple(db, query, params = {}) {
@@ -1,4 +1,4 @@
1
- import { i as StructuredData } from "./remark-structure-CILz6H_T.js";
1
+ import { i as StructuredData } from "./remark-structure-c-gm2PCy.js";
2
2
  import { Algoliasearch } from "algoliasearch";
3
3
 
4
4
  //#region src/search/algolia.d.ts
@@ -1,4 +1,4 @@
1
- import { i as Root, r as Node } from "./definitions-AAtMxt2w.js";
1
+ import { i as Root, r as Node } from "./definitions-Cb3qV_RZ.js";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/breadcrumb.d.ts
@@ -1,5 +1,5 @@
1
1
  import { r as findPath } from "./utils-6GexS7iX.js";
2
- import { r as extname, t as basename } from "./path-CYZclEPY.js";
2
+ import { r as extname, t as basename } from "./path-CL7hf0GY.js";
3
3
  //#region src/search/server/build-index.ts
4
4
  async function buildIndexDefault(page) {
5
5
  let structuredData;
@@ -1,8 +1,8 @@
1
- import { t as Awaitable } from "./types-3ccArm6T.js";
2
- import { t as BaseIndex } from "./algolia-BcNfAtYC.js";
3
- import { r as SortedResult } from "./index-Ch9QIdT6.js";
1
+ import { t as Awaitable } from "./types-Dr0HqbXP.js";
2
+ import { t as BaseIndex } from "./algolia-CV1p_BGs.js";
3
+ import { r as SortedResult } from "./index-CQ5TBOzH.js";
4
4
  import { DependencyList } from "react";
5
- import { AnyOrama } from "@orama/orama";
5
+ import { AnyOrama, Orama, SearchParams } from "@orama/orama";
6
6
  import { LiteClient, SearchResponse } from "algoliasearch/lite";
7
7
  import { OramaCloud, OramaCloudSearchParams } from "@orama/core";
8
8
  import { ClientSearchParams, OramaClient } from "@oramacloud/client";
@@ -50,6 +50,10 @@ interface StaticOptions {
50
50
  * Filter by locale (unsupported at the moment)
51
51
  */
52
52
  locale?: string;
53
+ /**
54
+ * extra options for search
55
+ */
56
+ search?: Partial<SearchParams<Orama<unknown>>>;
53
57
  }
54
58
  declare function oramaStaticClient(options: StaticOptions): SearchClient;
55
59
  //#endregion
@@ -1,10 +1,10 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-B-bxz1EN.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CP5w6VTd.js";
3
- import { r as StructureOptions } from "../../remark-structure-CILz6H_T.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-DR_pmcPV.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-G7U6TydN.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-BMre-WzD.js";
7
- import { t as ResolvePlugins } from "../../util-D_kBfbUQ.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-Cf00Zu8M.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-DQlJevNY.js";
3
+ import { r as StructureOptions } from "../../remark-structure-c-gm2PCy.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-CejYcqcD.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-Dk79zZwn.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-7SDuqMc6.js";
7
+ import { t as ResolvePlugins } from "../../util-D2LMvKsn.js";
8
8
  import { Pluggable } from "unified";
9
9
  import { ProcessorOptions } from "@mdx-js/mdx";
10
10
 
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-CT8y1EgJ.js";
1
+ import { t as resolvePlugins } from "../../util-BnfE-P1F.js";
2
2
  //#region src/content/mdx/preset-bundler.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -1,10 +1,10 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-B-bxz1EN.js";
2
- import { t as RemarkImageOptions } from "../../remark-image-CP5w6VTd.js";
3
- import { r as StructureOptions } from "../../remark-structure-CILz6H_T.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-DR_pmcPV.js";
5
- import { t as RemarkCodeTabOptions } from "../../remark-code-tab-G7U6TydN.js";
6
- import { t as RemarkNpmOptions } from "../../remark-npm-BMre-WzD.js";
7
- import { t as ResolvePlugins } from "../../util-D_kBfbUQ.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-Cf00Zu8M.js";
2
+ import { t as RemarkImageOptions } from "../../remark-image-DQlJevNY.js";
3
+ import { r as StructureOptions } from "../../remark-structure-c-gm2PCy.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-CejYcqcD.js";
5
+ import { t as RemarkCodeTabOptions } from "../../remark-code-tab-Dk79zZwn.js";
6
+ import { t as RemarkNpmOptions } from "../../remark-npm-7SDuqMc6.js";
7
+ import { t as ResolvePlugins } from "../../util-D2LMvKsn.js";
8
8
  import { ProcessorOptions } from "@mdx-js/mdx";
9
9
 
10
10
  //#region src/content/mdx/preset-runtime.d.ts
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-CT8y1EgJ.js";
1
+ import { t as resolvePlugins } from "../../util-BnfE-P1F.js";
2
2
  //#region src/content/mdx/preset-runtime.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -1,4 +1,4 @@
1
- import { s as TOCItemType } from "../toc-DmllTzmG.js";
1
+ import { s as TOCItemType } from "../toc-LAWJi-w9.js";
2
2
  import { Compatible } from "vfile";
3
3
  import { PluggableList } from "unified";
4
4
 
@@ -1,17 +1,15 @@
1
1
  "use client";
2
- import { configDefault } from "./index.js";
3
- import { useShiki as useShiki$1 } from "./core/client.js";
4
- //#region src/highlight/client.tsx
2
+ import { t as applyDefaultThemes } from "../utils-CLsGsTYQ.js";
3
+ import { useShiki as useShiki$1 } from "./shiki/react.js";
4
+ import { defaultShikiFactory } from "./shiki/full.js";
5
+ //#region src/highlight/client.ts
5
6
  /**
6
7
  * get highlighted results, should be used with React Suspense API.
7
8
  *
8
9
  * note: results are cached with (lang, code) as keys, if this is not the desired behaviour, pass a `deps` instead.
9
10
  */
10
11
  function useShiki(code, options, deps) {
11
- return useShiki$1(code, {
12
- config: configDefault,
13
- ...options
14
- }, deps);
12
+ return useShiki$1(() => defaultShikiFactory.getOrInit(), code, applyDefaultThemes(options), deps);
15
13
  }
16
14
  //#endregion
17
15
  export { useShiki };
@@ -1,21 +1,23 @@
1
- import { n as DistributiveOmit } from "../types-3ccArm6T.js";
2
- import { t as ResolvedShikiConfig } from "../config-CsHj5oV8.js";
3
- import { t as CoreHighlightOptions } from "../index-DSpA1JO4.js";
4
1
  import { ReactNode } from "react";
2
+ import { Components } from "hast-util-to-jsx-runtime";
5
3
  import * as shiki from "shiki";
6
- import { BundledLanguage, BundledTheme, LanguageRegistration, ThemeRegistrationAny } from "shiki";
4
+ import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, LanguageRegistration, ThemeRegistrationAny } from "shiki";
7
5
  import { Root } from "hast";
8
6
 
9
7
  //#region src/highlight/index.d.ts
10
- type HighlightOptions = DistributiveOmit<CoreHighlightOptions, 'config'> & {
8
+ type HighlightOptions = HighlightHastOptions & {
9
+ components?: Partial<Components>;
10
+ };
11
+ type HighlightHastOptions = CodeToHastOptionsCommon<BundledLanguage> & CodeOptionsMeta & {
12
+ fallbackLanguage?: BundledLanguage | (string & {});
11
13
  /**
12
14
  * The Regex Engine for Shiki
13
15
  *
14
16
  * @defaultValue 'js'
15
17
  */
16
18
  engine?: 'js' | 'oniguruma';
17
- };
18
- declare function highlightHast(code: string, options: HighlightOptions): Promise<Root>;
19
+ } & (CodeOptionsThemes<BundledTheme> | Record<never, never>);
20
+ declare function highlightHast(code: string, options: HighlightHastOptions): Promise<Root>;
19
21
  /**
20
22
  * Get Shiki highlighter instance of Fumadocs (mostly for internal use, you should use Shiki directly over this).
21
23
  *
@@ -27,8 +29,5 @@ declare function getHighlighter(engineType: 'js' | 'oniguruma', options?: {
27
29
  themes?: (BundledTheme | ThemeRegistrationAny)[];
28
30
  }): Promise<shiki.HighlighterCore>;
29
31
  declare function highlight(code: string, options: HighlightOptions): Promise<ReactNode>;
30
- declare const configDefault: ResolvedShikiConfig;
31
- /** config using the WASM powered Regex engine */
32
- declare const configWASM: ResolvedShikiConfig;
33
32
  //#endregion
34
- export { HighlightOptions, configDefault, configWASM, getHighlighter, highlight, highlightHast };
33
+ export { HighlightHastOptions, HighlightOptions, getHighlighter, highlight, highlightHast };
@@ -1,12 +1,11 @@
1
- import { getHighlighter as getHighlighter$1, highlight as highlight$1, highlightHast as highlightHast$1 } from "./core/index.js";
2
- import { defineShikiConfig } from "./config.js";
1
+ import { a as loadMissingTheme, i as loadMissingLanguage, t as applyDefaultThemes } from "../utils-CLsGsTYQ.js";
2
+ import { highlightHast as highlightHast$1 } from "./shiki/index.js";
3
+ import { defaultShikiFactory, wasmShikiFactory } from "./shiki/full.js";
4
+ import * as JsxRuntime from "react/jsx-runtime";
5
+ import { toJsxRuntime } from "hast-util-to-jsx-runtime";
3
6
  //#region src/highlight/index.ts
4
7
  async function highlightHast(code, options) {
5
- const engine = options.engine ?? "js";
6
- return highlightHast$1(code, {
7
- ...options,
8
- config: engine === "js" ? configDefault : configWASM
9
- });
8
+ return highlightHast$1(await ((options.engine ?? "js") === "js" ? defaultShikiFactory : wasmShikiFactory).getOrInit(), code, applyDefaultThemes(options));
10
9
  }
11
10
  /**
12
11
  * Get Shiki highlighter instance of Fumadocs (mostly for internal use, you should use Shiki directly over this).
@@ -14,43 +13,17 @@ async function highlightHast(code, options) {
14
13
  * @param engineType - Shiki Regex engine to use.
15
14
  * @param options - Shiki options.
16
15
  */
17
- async function getHighlighter(engineType, options) {
18
- return getHighlighter$1(engineType === "js" ? configDefault : configWASM, options);
16
+ async function getHighlighter(engineType, options = {}) {
17
+ const instance = await (engineType === "js" ? defaultShikiFactory : wasmShikiFactory).getOrInit();
18
+ await Promise.all([options.langs && loadMissingLanguage(instance, options.langs), options.themes && loadMissingTheme(instance, options.themes)]);
19
+ return instance;
19
20
  }
20
21
  async function highlight(code, options) {
21
- const engine = options.engine ?? "js";
22
- return highlight$1(code, {
23
- ...options,
24
- config: engine === "js" ? configDefault : configWASM
22
+ return toJsxRuntime(await highlightHast(code, options), {
23
+ ...JsxRuntime,
24
+ development: false,
25
+ components: options.components
25
26
  });
26
27
  }
27
- const defaultThemes = { themes: {
28
- light: "github-light",
29
- dark: "github-dark"
30
- } };
31
- const configDefault = defineShikiConfig({
32
- defaultThemes,
33
- async createHighlighter() {
34
- const { createHighlighter } = await import("shiki");
35
- const { createJavaScriptRegexEngine } = await import("shiki/engine/javascript");
36
- return createHighlighter({
37
- langs: [],
38
- themes: [],
39
- engine: createJavaScriptRegexEngine()
40
- });
41
- }
42
- });
43
- /** config using the WASM powered Regex engine */
44
- const configWASM = defineShikiConfig({
45
- defaultThemes,
46
- async createHighlighter() {
47
- const { createHighlighter, createOnigurumaEngine } = await import("shiki");
48
- return createHighlighter({
49
- langs: [],
50
- themes: [],
51
- engine: createOnigurumaEngine(import("shiki/wasm"))
52
- });
53
- }
54
- });
55
28
  //#endregion
56
- export { configDefault, configWASM, getHighlighter, highlight, highlightHast };
29
+ export { getHighlighter, highlight, highlightHast };
@@ -0,0 +1,8 @@
1
+ import { n as ShikiFactory } from "../../index-BJnfEyTc.js";
2
+
3
+ //#region src/highlight/shiki/full.d.ts
4
+ declare const defaultShikiFactory: ShikiFactory;
5
+ /** factory using the WASM powered Regex engine */
6
+ declare const wasmShikiFactory: ShikiFactory;
7
+ //#endregion
8
+ export { defaultShikiFactory, wasmShikiFactory };
@@ -0,0 +1,24 @@
1
+ import "../../utils-CLsGsTYQ.js";
2
+ import { createShikiFactory } from "./index.js";
3
+ //#region src/highlight/shiki/full.ts
4
+ const defaultShikiFactory = createShikiFactory({ async init(options) {
5
+ const { createHighlighter, createJavaScriptRegexEngine } = await import("shiki");
6
+ return createHighlighter({
7
+ langs: [],
8
+ themes: [],
9
+ langAlias: options?.langAlias,
10
+ engine: createJavaScriptRegexEngine()
11
+ });
12
+ } });
13
+ /** factory using the WASM powered Regex engine */
14
+ const wasmShikiFactory = createShikiFactory({ async init(options) {
15
+ const { createHighlighter, createOnigurumaEngine } = await import("shiki");
16
+ return createHighlighter({
17
+ langs: [],
18
+ themes: [],
19
+ langAlias: options?.langAlias,
20
+ engine: createOnigurumaEngine(import("shiki/wasm"))
21
+ });
22
+ } });
23
+ //#endregion
24
+ export { defaultShikiFactory, wasmShikiFactory };
@@ -0,0 +1,2 @@
1
+ import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-BJnfEyTc.js";
2
+ export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
@@ -0,0 +1,22 @@
1
+ import { a as loadMissingTheme, r as getRequiredThemes } from "../../utils-CLsGsTYQ.js";
2
+ //#region src/highlight/shiki/index.ts
3
+ function createShikiFactory(config) {
4
+ let instance;
5
+ return {
6
+ init(options) {
7
+ return instance = config.init(options);
8
+ },
9
+ getOrInit() {
10
+ return instance ?? this.init();
11
+ }
12
+ };
13
+ }
14
+ async function highlightHast(highlighter, code, options) {
15
+ const { fallbackLanguage = "text", ...resolved } = options;
16
+ const { isSpecialLang } = await import("shiki/core");
17
+ if (!isSpecialLang(resolved.lang) && !(resolved.lang in highlighter.getBundledLanguages()) && !highlighter.getLoadedLanguages().includes(resolved.lang)) resolved.lang = fallbackLanguage;
18
+ await Promise.all([loadMissingTheme(highlighter, getRequiredThemes(resolved)), highlighter.loadLanguage(resolved.lang)]);
19
+ return highlighter.codeToHast(code, resolved);
20
+ }
21
+ //#endregion
22
+ export { createShikiFactory, highlightHast };
@@ -0,0 +1,24 @@
1
+ import { t as Awaitable } from "../../types-Dr0HqbXP.js";
2
+ import { t as HighlightHastOptions } from "../../index-BJnfEyTc.js";
3
+ import { DependencyList, ReactNode } from "react";
4
+ import { Components } from "hast-util-to-jsx-runtime";
5
+ import { HighlighterCore } from "shiki";
6
+
7
+ //#region src/highlight/shiki/react.d.ts
8
+ type UseShikiOptions = HighlightHastOptions & {
9
+ components?: Partial<Components>;
10
+ };
11
+ /**
12
+ * get highlighted results (uncached), use `useEffect` instead of React 19 APIs.
13
+ */
14
+ declare function useShikiDynamic(highlighter: HighlighterCore | (() => Awaitable<HighlighterCore>), code: string, options: UseShikiOptions & {
15
+ defaultValue?: ReactNode;
16
+ }, deps: DependencyList): ReactNode;
17
+ /**
18
+ * get highlighted results, should be used with React Suspense API.
19
+ *
20
+ * note: results are cached with (lang, code) as keys, if this is not the desired behaviour, pass a `deps` instead.
21
+ */
22
+ declare function useShiki(highlighter: HighlighterCore | (() => Awaitable<HighlighterCore>), code: string, options: UseShikiOptions, deps?: DependencyList): ReactNode;
23
+ //#endregion
24
+ export { UseShikiOptions, useShiki, useShikiDynamic };
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import "../../utils-CLsGsTYQ.js";
3
+ import { highlightHast } from "./index.js";
4
+ import { use, useEffect, useMemo, useRef, useState } from "react";
5
+ import * as JsxRuntime from "react/jsx-runtime";
6
+ import { toJsxRuntime } from "hast-util-to-jsx-runtime";
7
+ //#region src/highlight/shiki/react.ts
8
+ const promises = {};
9
+ /**
10
+ * get highlighted results (uncached), use `useEffect` instead of React 19 APIs.
11
+ */
12
+ function useShikiDynamic(highlighter, code, options, deps) {
13
+ const [node, setNode] = useState(options.defaultValue);
14
+ const lastTask = useRef(null);
15
+ useEffect(() => {
16
+ async function task() {
17
+ return toJsxRuntime(await highlightHast(typeof highlighter === "function" ? await highlighter() : highlighter, code, options), {
18
+ ...JsxRuntime,
19
+ components: options.components
20
+ });
21
+ }
22
+ const promise = task();
23
+ lastTask.current = promise;
24
+ promise.then((res) => {
25
+ if (lastTask.current === promise) setNode(res);
26
+ });
27
+ return () => {
28
+ lastTask.current = null;
29
+ };
30
+ }, deps);
31
+ return node;
32
+ }
33
+ /**
34
+ * get highlighted results, should be used with React Suspense API.
35
+ *
36
+ * note: results are cached with (lang, code) as keys, if this is not the desired behaviour, pass a `deps` instead.
37
+ */
38
+ function useShiki(highlighter, code, options, deps = [options.lang, code]) {
39
+ const key = useMemo(() => JSON.stringify(deps), [deps]);
40
+ async function run() {
41
+ return toJsxRuntime(await highlightHast(typeof highlighter === "function" ? await highlighter() : highlighter, code, options), {
42
+ ...JsxRuntime,
43
+ components: options.components
44
+ });
45
+ }
46
+ return use(promises[key] ??= run());
47
+ }
48
+ //#endregion
49
+ export { useShiki, useShikiDynamic };
@@ -1,2 +1,2 @@
1
- import { n as defineI18n, t as I18nConfig } from "../index-CsYVANvj.js";
1
+ import { n as defineI18n, t as I18nConfig } from "../index-DAzunKMp.js";
2
2
  export { I18nConfig, defineI18n };
@@ -1,4 +1,4 @@
1
- import { t as I18nConfig } from "../index-CsYVANvj.js";
1
+ import { t as I18nConfig } from "../index-DAzunKMp.js";
2
2
  import { NextProxy } from "next/server";
3
3
  import { NextURL } from "next/dist/server/web/next-url";
4
4
 
@@ -0,0 +1,22 @@
1
+ import { t as Awaitable } from "./types-Dr0HqbXP.js";
2
+ import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
3
+ import { Root } from "hast";
4
+
5
+ //#region src/highlight/shiki/index.d.ts
6
+ interface InitOptions {
7
+ langAlias?: Record<string, string>;
8
+ }
9
+ /**
10
+ * A factory for Fumadocs to manage Shiki instances.
11
+ */
12
+ interface ShikiFactory {
13
+ init: (options?: InitOptions) => Awaitable<HighlighterCore>;
14
+ getOrInit: () => Awaitable<HighlighterCore>;
15
+ }
16
+ declare function createShikiFactory(config: Pick<ShikiFactory, 'init'>): ShikiFactory;
17
+ type HighlightHastOptions = CodeToHastOptionsCommon<BundledLanguage> & CodeOptionsMeta & CodeOptionsThemes<BundledTheme> & {
18
+ fallbackLanguage?: BundledLanguage | (string & {});
19
+ };
20
+ declare function highlightHast(highlighter: HighlighterCore, code: string, options: HighlightHastOptions): Promise<Root>;
21
+ //#endregion
22
+ export { highlightHast as i, ShikiFactory as n, createShikiFactory as r, HighlightHastOptions as t };
@@ -1,4 +1,4 @@
1
- import { i as Root } from "./definitions-AAtMxt2w.js";
1
+ import { i as Root } from "./definitions-Cb3qV_RZ.js";
2
2
 
3
3
  //#region src/source/client/index.d.ts
4
4
  interface SerializedPageTree {
@@ -1,6 +1,6 @@
1
- import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-AAtMxt2w.js";
2
- import { t as I18nConfig } from "./index-CsYVANvj.js";
3
- import { n as SerializedPageTree } from "./index-Cq7hKKw4.js";
1
+ import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-Cb3qV_RZ.js";
2
+ import { t as I18nConfig } from "./index-DAzunKMp.js";
3
+ import { n as SerializedPageTree } from "./index-CnCCZH9P2.js";
4
4
  import { ReactNode } from "react";
5
5
 
6
6
  //#region src/source/source.d.ts
@@ -1,4 +1,4 @@
1
- import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-AAtMxt2w.js";
1
+ import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-Cb3qV_RZ.js";
2
2
 
3
3
  //#region src/page-tree/utils.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DBm7VMdU.js";
1
+ import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DuhKfwET.js";
2
2
  export { CodeBlockAttributes, CodeBlockTabsOptions, generateCodeBlockTabs, parseCodeBlockAttributes };
@@ -1,17 +1,18 @@
1
- import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-C2GLsTxH.js";
2
- import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-Ck9MowQQ.js";
3
- import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-B-bxz1EN.js";
4
- import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-CP5w6VTd.js";
5
- import { a as defaultStringifier, c as structure, i as StructuredData, n as StringifyOptions, o as remarkStructure, r as StructureOptions, s as remarkStructureDefaultOptions, t as Stringifier } from "../remark-structure-CILz6H_T.js";
6
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DR_pmcPV.js";
7
- import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-DNKm8XsG.js";
8
- import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-gkHghBYa.js";
9
- import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-BLsqqf_o.js";
10
- import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-G7U6TydN.js";
11
- import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-9ooYFxUA.js";
12
- import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-BMre-WzD.js";
13
- import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DBm7VMdU.js";
14
- import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-C7gYD1Bn.js";
15
- import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-CeZ2Fepw.js";
16
- import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-90yTnyTC.js";
17
- export { CodeBlockAttributes, CodeBlockIcon, CodeBlockTabsOptions, FeedbackBlockProps, RehypeCodeOptions, RehypeTOCItemType, RehypeTocOptions, RemarkAdmonitionOptions, RemarkCodeTabOptions, RemarkDirectiveAdmonitionOptions, RemarkFeedbackBlockOptions, RemarkGfmOptions, RemarkHeadingOptions, RemarkImageOptions, type RemarkMdxFilesOptions, RemarkMdxMermaidOptions, RemarkNpmOptions, RemarkStepsOptions, Stringifier, StringifyOptions, StructureOptions, StructuredData, defaultStringifier, generateCodeBlockTabs, parseCodeBlockAttributes, rehypeCode, rehypeCodeDefaultOptions, rehypeToc, remarkAdmonition, remarkCodeTab, remarkDirectiveAdmonition, remarkFeedbackBlock, remarkGfm, remarkHeading, remarkImage, remarkMdxFiles, remarkMdxMermaid, remarkNpm, remarkSteps, remarkStructure, remarkStructureDefaultOptions, structure, transformerIcon, transformerTab };
1
+ import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-DIHBRjLx.js";
2
+ import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-B7htbckM.js";
3
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-Cf00Zu8M.js";
4
+ import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-DQlJevNY.js";
5
+ import { a as defaultStringifier, c as structure, i as StructuredData, n as StringifyOptions, o as remarkStructure, r as StructureOptions, s as remarkStructureDefaultOptions, t as Stringifier } from "../remark-structure-c-gm2PCy.js";
6
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-CejYcqcD.js";
7
+ import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-0gZM40ZU.js";
8
+ import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CxFIkQ_i.js";
9
+ import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-DPrrpvXd.js";
10
+ import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Dk79zZwn.js";
11
+ import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-DsnXM6Xj.js";
12
+ import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-7SDuqMc6.js";
13
+ import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DuhKfwET.js";
14
+ import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-C50nFvnY.js";
15
+ import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-BkA2vurg.js";
16
+ import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-CehhnqT0.js";
17
+ import { t as LLMsOptions } from "../remark-llms-Bjyq1jdk.js";
18
+ export { CodeBlockAttributes, CodeBlockIcon, CodeBlockTabsOptions, FeedbackBlockProps, type LLMsOptions, RehypeCodeOptions, RehypeTOCItemType, RehypeTocOptions, RemarkAdmonitionOptions, RemarkCodeTabOptions, RemarkDirectiveAdmonitionOptions, RemarkFeedbackBlockOptions, RemarkGfmOptions, RemarkHeadingOptions, RemarkImageOptions, type RemarkMdxFilesOptions, RemarkMdxMermaidOptions, RemarkNpmOptions, RemarkStepsOptions, Stringifier, StringifyOptions, StructureOptions, StructuredData, defaultStringifier, generateCodeBlockTabs, parseCodeBlockAttributes, rehypeCode, rehypeCodeDefaultOptions, rehypeToc, remarkAdmonition, remarkCodeTab, remarkDirectiveAdmonition, remarkFeedbackBlock, remarkGfm, remarkHeading, remarkImage, remarkMdxFiles, remarkMdxMermaid, remarkNpm, remarkSteps, remarkStructure, remarkStructureDefaultOptions, structure, transformerIcon, transformerTab };
@@ -1,8 +1,9 @@
1
1
  import "../mdast-utils-9tJwoVTq.js";
2
2
  import { remarkHeading } from "./remark-heading.js";
3
+ import "../utils-CLsGsTYQ.js";
3
4
  import { generateCodeBlockTabs, parseCodeBlockAttributes } from "./codeblock-utils.js";
4
5
  import { remarkGfm } from "./remark-gfm.js";
5
- import { i as transformerIcon, r as transformerTab } from "../rehype-code.core-AzcK6-sL.js";
6
+ import { i as transformerIcon, r as transformerTab } from "../rehype-code.core-23F1yz08.js";
6
7
  import { rehypeCode, rehypeCodeDefaultOptions } from "./rehype-code.js";
7
8
  import { remarkImage } from "./remark-image.js";
8
9
  import { defaultStringifier, remarkStructure, remarkStructureDefaultOptions, structure } from "./remark-structure.js";
@@ -1,2 +1,2 @@
1
- import { a as CodeBlockIcon, i as transformerTab, n as createRehypeCode, o as transformerIcon, r as rehypeCodeDefaultOptions, t as RehypeCodeOptionsCommon } from "../rehype-code.core-Ck9MowQQ.js";
1
+ import { a as CodeBlockIcon, i as transformerTab, n as createRehypeCode, o as transformerIcon, r as rehypeCodeDefaultOptions, t as RehypeCodeOptionsCommon } from "../rehype-code.core-B7htbckM.js";
2
2
  export { CodeBlockIcon, RehypeCodeOptionsCommon, createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,2 +1,3 @@
1
- import { i as transformerIcon, n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-AzcK6-sL.js";
1
+ import "../utils-CLsGsTYQ.js";
2
+ import { i as transformerIcon, n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-23F1yz08.js";
2
3
  export { createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,3 +1,3 @@
1
- import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-Ck9MowQQ.js";
2
- import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-B-bxz1EN.js";
1
+ import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-B7htbckM.js";
2
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-Cf00Zu8M.js";
3
3
  export { CodeBlockIcon, RehypeCodeOptions, rehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,21 +1,22 @@
1
- import { configDefault, configWASM } from "../highlight/index.js";
2
- import { i as transformerIcon, n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-AzcK6-sL.js";
1
+ import "../utils-CLsGsTYQ.js";
2
+ import { defaultShikiFactory, wasmShikiFactory } from "../highlight/shiki/full.js";
3
+ import { i as transformerIcon, n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-23F1yz08.js";
3
4
  //#region src/mdx-plugins/rehype-code.ts
4
5
  const rehypeCodeDefaultOptions = {
5
6
  engine: "js",
6
- ...rehypeCodeDefaultOptions$1(configDefault)
7
+ ...rehypeCodeDefaultOptions$1()
7
8
  };
8
- const rehypeCode = createRehypeCode((_options) => {
9
+ const rehypeCode = createRehypeCode(async (_options) => {
9
10
  const options = {
10
11
  ...rehypeCodeDefaultOptions,
11
12
  ..._options
12
13
  };
13
- if (options.engine === "oniguruma") return {
14
- config: configWASM,
15
- options
16
- };
14
+ const factory = options.engine === "oniguruma" ? wasmShikiFactory : defaultShikiFactory;
15
+ let highlighter;
16
+ if (options.langAlias) highlighter = await factory.init({ langAlias: options.langAlias });
17
+ else highlighter = await factory.getOrInit();
17
18
  return {
18
- config: configDefault,
19
+ highlighter,
19
20
  options
20
21
  };
21
22
  });
@@ -1,2 +1,2 @@
1
- import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-BLsqqf_o.js";
1
+ import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-DPrrpvXd.js";
2
2
  export { RehypeTOCItemType, RehypeTocOptions, rehypeToc };
@@ -1,2 +1,2 @@
1
- import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-DNKm8XsG.js";
1
+ import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-0gZM40ZU.js";
2
2
  export { RemarkAdmonitionOptions, remarkAdmonition };
@@ -1,2 +1,2 @@
1
- import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-G7U6TydN.js";
1
+ import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Dk79zZwn.js";
2
2
  export { RemarkCodeTabOptions, remarkCodeTab };
@@ -1,2 +1,2 @@
1
- import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-gkHghBYa.js";
1
+ import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CxFIkQ_i.js";
2
2
  export { RemarkDirectiveAdmonitionOptions, remarkDirectiveAdmonition };
@@ -1,2 +1,2 @@
1
- import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-90yTnyTC.js";
1
+ import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-CehhnqT0.js";
2
2
  export { FeedbackBlockProps, RemarkFeedbackBlockOptions, remarkFeedbackBlock };
@@ -1,2 +1,2 @@
1
- import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-C2GLsTxH.js";
1
+ import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-DIHBRjLx.js";
2
2
  export { RemarkGfmOptions, remarkGfm };
@@ -1,2 +1,2 @@
1
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DR_pmcPV.js";
1
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-CejYcqcD.js";
2
2
  export { RemarkHeadingOptions, remarkHeading };
@@ -1,2 +1,2 @@
1
- import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-CP5w6VTd.js";
1
+ import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-DQlJevNY.js";
2
2
  export { RemarkImageOptions, remarkImage };