@mdit-vue/plugin-toc 0.11.0 → 0.11.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 (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { MarkdownItHeader } from '@mdit-vue/types';
2
- import { RuleBlock } from 'markdown-it/lib/parser_block.js';
3
- import { PluginWithOptions } from 'markdown-it';
2
+ import ParserBlock from 'markdown-it/lib/parser_block.js';
3
+ import MarkdownIt from 'markdown-it';
4
4
 
5
5
  /**
6
6
  * Options of @mdit-vue/plugin-toc
@@ -87,7 +87,7 @@ declare const createRenderHeaders: ({ listTag, listClass, itemClass, linkTag, li
87
87
  *
88
88
  * @see https://github.com/nagaozen/markdown-it-toc-done-right
89
89
  */
90
- declare const createTocBlockRule: ({ pattern, containerTag, containerClass, }: Pick<Required<TocPluginOptions>, 'pattern' | 'containerTag' | 'containerClass'>) => RuleBlock;
90
+ declare const createTocBlockRule: ({ pattern, containerTag, containerClass, }: Pick<Required<TocPluginOptions>, 'pattern' | 'containerTag' | 'containerClass'>) => ParserBlock.RuleBlock;
91
91
 
92
92
  /**
93
93
  * Generate table of contents
@@ -96,6 +96,6 @@ declare const createTocBlockRule: ({ pattern, containerTag, containerClass, }: P
96
96
  *
97
97
  * @see https://github.com/nagaozen/markdown-it-toc-done-right
98
98
  */
99
- declare const tocPlugin: PluginWithOptions<TocPluginOptions>;
99
+ declare const tocPlugin: MarkdownIt.PluginWithOptions<TocPluginOptions>;
100
100
 
101
101
  export { TocPluginOptions, createRenderHeaders, createTocBlockRule, tocPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdit-vue/plugin-toc",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "A markdown-it plugin to generate table-of-contents that compatible with Vue.js",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "6e4f18dacc06e0aa5d3108df8925f6b0aa885150"
52
+ "gitHead": "98828479d07c7bc52d178a00cdb92c166eff09ee"
53
53
  }