Socket
Socket
Sign inDemoInstall

markdown-toc

Package Overview
Dependencies
53
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.9 to 0.12.10

9

index.js

@@ -192,3 +192,4 @@ 'use strict';

function slugify(str, opts, token) {
function slugify(str, options, token) {
var opts = utils.merge({}, options);
if (opts && opts.slugify === false) return str;

@@ -203,4 +204,6 @@ if (opts && typeof opts.slugify === 'function') {

str = str.split(/[|$`~=\\\/@+*!?({[\]})<>=.,;:'"^]/).join('');
if (token.seen > 0) {
str += '-' + token.seen;
if (token && typeof token === 'object' && token.seen) {
if (token.seen > 0) {
str += '-' + token.seen;
}
}

@@ -207,0 +210,0 @@ return str;

{
"name": "markdown-toc",
"description": "Generate a markdown TOC (table of contents) with Remarkable.",
"version": "0.12.9",
"version": "0.12.10",
"homepage": "https://github.com/jonschlinkert/markdown-toc",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -28,4 +28,2 @@ # markdown-toc [![NPM version](https://img.shields.io/npm/v/markdown-toc.svg?style=flat)](https://www.npmjs.com/package/markdown-toc) [![NPM downloads](https://img.shields.io/npm/dm/markdown-toc.svg?style=flat)](https://npmjs.org/package/markdown-toc) [![Build Status](https://img.shields.io/travis/jonschlinkert/markdown-toc.svg?style=flat)](https://travis-ci.org/jonschlinkert/markdown-toc)

_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
## Install

@@ -32,0 +30,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc