@altano/remark-mdx-toc-with-slugs 1.0.1 → 1.0.2

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 (2) hide show
  1. package/dist/index.d.ts +6 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
- import { RemarkMdxTocOptions } from 'remark-mdx-toc';
1
+ import { TocEntry, RemarkMdxTocOptions } from 'remark-mdx-toc';
2
2
  import { Plugin } from 'unified';
3
3
 
4
+ declare type TableOfContentsEntry = TocEntry & {
5
+ slug: string;
6
+ children: TableOfContentsEntry[];
7
+ };
4
8
  declare type RemarkMdxTocWithSlugsOptions = RemarkMdxTocOptions;
5
9
  /**
6
10
  * Remark plugin that, given a tree that has had remark-mdx-toc run over it
@@ -9,4 +13,4 @@ declare type RemarkMdxTocWithSlugsOptions = RemarkMdxTocOptions;
9
13
  */
10
14
  declare const remarkMdxTocWithSlugs: Plugin<[RemarkMdxTocWithSlugsOptions?]>;
11
15
 
12
- export { RemarkMdxTocWithSlugsOptions, remarkMdxTocWithSlugs as default };
16
+ export { RemarkMdxTocWithSlugsOptions, TableOfContentsEntry, remarkMdxTocWithSlugs as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altano/remark-mdx-toc-with-slugs",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A remark plugin to generate a table of contents (including slugs) and convert it into MDX export",
5
5
  "type": "module",
6
6
  "sideEffects": false,