New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-etoc

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-etoc - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

7

index.js

@@ -36,9 +36,6 @@ var toc = require('markdown-toc');

// markdown-toc do not pass options to generate func,
// markdown-toc do not pass options to generate,
// we should escape <!-- toc --> not beginning with whitespace
page.content = page.content.replace(/^(\S.*)<!-- toc -->(.*)$/m, '$1<!-- rawtoc -->$2');
// we do not process <!-- tocstop -->
var options = {};
options.regex = /^\s*(?:<!-- toc -->)\s*$/im;
page.content = toc.insert(page.content, options, {
page.content = toc.insert(page.content, {
slugify: function (str) {

@@ -45,0 +42,0 @@ return slug(str);

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "1.1.7",
"version": "1.1.8",
"engines": {

@@ -8,0 +8,0 @@ "gitbook": "*"

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