Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mdit-vue/plugin-toc

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdit-vue/plugin-toc - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

12

dist/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc