fumadocs-mdx 9.0.3 → 9.0.4

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/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NextConfig } from 'next';
2
- import { RemarkHeadingOptions, RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins';
2
+ import { StructureOptions, RemarkHeadingOptions, RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins';
3
3
  import { Pluggable } from 'unified';
4
4
  import { Options as Options$1 } from './loader-mdx.mjs';
5
5
  import { O as Options } from './search-index-plugin-DG9nZ1CX.mjs';
@@ -13,6 +13,7 @@ type MDXOptions = Omit<NonNullable<Options$1>, 'rehypePlugins' | 'remarkPlugins'
13
13
  * Properties to export from `vfile.data`
14
14
  */
15
15
  valueToExport?: string[];
16
+ remarkStructureOptions?: StructureOptions | false;
16
17
  remarkHeadingOptions?: RemarkHeadingOptions;
17
18
  remarkImageOptions?: RemarkImageOptions | false;
18
19
  rehypeCodeOptions?: RehypeCodeOptions | false;
package/dist/config.mjs CHANGED
@@ -153,6 +153,7 @@ function getMDXLoaderOptions({
153
153
  rehypeCodeOptions,
154
154
  remarkImageOptions,
155
155
  remarkHeadingOptions,
156
+ remarkStructureOptions,
156
157
  ...mdxOptions
157
158
  }) {
158
159
  const mdxExports = [
@@ -168,7 +169,10 @@ function getMDXLoaderOptions({
168
169
  [remarkHeading, remarkHeadingOptions],
169
170
  remarkImageOptions !== false && [remarkImage, remarkImageOptions],
170
171
  ...v,
171
- remarkStructure,
172
+ remarkStructureOptions !== false && [
173
+ remarkStructure,
174
+ remarkStructureOptions
175
+ ],
172
176
  [remarkMdxExport, { values: mdxExports }]
173
177
  ],
174
178
  mdxOptions.remarkPlugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -53,7 +53,7 @@
53
53
  "unified": "^11.0.5",
54
54
  "webpack": "^5.90.3",
55
55
  "eslint-config-custom": "0.0.0",
56
- "fumadocs-core": "13.4.0",
56
+ "fumadocs-core": "13.4.1",
57
57
  "tsconfig": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {