@mdit-vue/plugin-toc
Advanced tools
Comparing version 2.0.0 to 2.1.0
import { MarkdownItHeader } from '@mdit-vue/types'; | ||
import ParserBlock from 'markdown-it/lib/parser_block.js'; | ||
import MarkdownIt from 'markdown-it'; | ||
import ParserBlock from 'markdown-it/lib/parser_block.mjs'; | ||
import { PluginWithOptions } from 'markdown-it'; | ||
@@ -60,3 +60,3 @@ /** | ||
*/ | ||
listTag?: 'ul' | 'ol'; | ||
listTag?: 'ol' | 'ul'; | ||
/** | ||
@@ -89,3 +89,3 @@ * The class for the TOC list | ||
type RenderHeadersFn = (headers: MarkdownItHeader[]) => string; | ||
declare const createRenderHeaders: ({ listTag, listClass, itemClass, linkTag, linkClass, }: Pick<Required<TocPluginOptions>, 'listTag' | 'listClass' | 'itemClass' | 'linkTag' | 'linkClass'>) => RenderHeadersFn; | ||
declare const createRenderHeaders: ({ listTag, listClass, itemClass, linkTag, linkClass, }: Pick<Required<TocPluginOptions>, 'itemClass' | 'linkClass' | 'linkTag' | 'listClass' | 'listTag'>) => RenderHeadersFn; | ||
@@ -100,3 +100,3 @@ /** | ||
*/ | ||
declare const createTocBlockRule: ({ pattern, containerTag, containerClass, }: Pick<Required<TocPluginOptions>, 'pattern' | 'containerTag' | 'containerClass'>) => ParserBlock.RuleBlock; | ||
declare const createTocBlockRule: ({ pattern, containerTag, containerClass, }: Pick<Required<TocPluginOptions>, 'containerClass' | 'containerTag' | 'pattern'>) => ParserBlock.RuleBlock; | ||
@@ -110,4 +110,4 @@ /** | ||
*/ | ||
declare const tocPlugin: MarkdownIt.PluginWithOptions<TocPluginOptions>; | ||
declare const tocPlugin: PluginWithOptions<TocPluginOptions>; | ||
export { type TocPluginOptions, createRenderHeaders, createTocBlockRule, tocPlugin }; |
{ | ||
"name": "@mdit-vue/plugin-toc", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A markdown-it plugin to generate table-of-contents that compatible with Vue.js", | ||
@@ -46,6 +46,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@mdit-vue/shared": "2.0.0", | ||
"@mdit-vue/types": "2.0.0", | ||
"@types/markdown-it": "^13.0.7", | ||
"markdown-it": "^14.0.0" | ||
"@mdit-vue/shared": "2.1.0", | ||
"@mdit-vue/types": "2.1.0", | ||
"@types/markdown-it": "^14.0.0", | ||
"markdown-it": "^14.1.0" | ||
}, | ||
@@ -58,3 +58,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "25e4e00fdd43d7437b846c6adcc7e0b33c50281d" | ||
"gitHead": "1d481f8238b3b0d5687e62e009e57ccacfc4a442" | ||
} |
@@ -24,4 +24,4 @@ # @mdit-vue/plugin-toc | ||
```ts | ||
import { tocPlugin } from '@mdit-vue/plugin-toc'; | ||
import MarkdownIt from 'markdown-it'; | ||
import { tocPlugin } from '@mdit-vue/plugin-toc'; | ||
@@ -28,0 +28,0 @@ const md = MarkdownIt({ html: true }).use(tocPlugin, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20510
+ Added@mdit-vue/shared@2.1.0(transitive)
+ Added@mdit-vue/types@2.1.0(transitive)
+ Added@types/linkify-it@5.0.0(transitive)
+ Added@types/markdown-it@14.1.2(transitive)
+ Added@types/mdurl@2.0.0(transitive)
- Removed@mdit-vue/shared@2.0.0(transitive)
- Removed@mdit-vue/types@2.0.0(transitive)
- Removed@types/linkify-it@3.0.5(transitive)
- Removed@types/markdown-it@13.0.9(transitive)
- Removed@types/mdurl@1.0.5(transitive)
Updated@mdit-vue/shared@2.1.0
Updated@mdit-vue/types@2.1.0
Updated@types/markdown-it@^14.0.0
Updatedmarkdown-it@^14.1.0