Socket
Socket
Sign inDemoInstall

markdown-toc

Package Overview
Dependencies
40
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.4 to 0.11.5

7

index.js

@@ -1,8 +0,1 @@

/*!
* markdown-toc <https://github.com/jonschlinkert/markdown-toc>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';

@@ -9,0 +2,0 @@

7

lib/insert.js
'use strict';
var matter = require('gray-matter');
var lazy = require('lazy-cache')(require);
var matter = lazy('gray-matter');
var toc = require('..');

@@ -30,3 +31,3 @@

// doesn't get mistaken for a heading
file = matter(str);
file = matter()(str);
str = file.content;

@@ -53,3 +54,3 @@ }

if (file) {
return matter.stringify(res, file.data);
return matter().stringify(res, file.data);
}

@@ -56,0 +57,0 @@ return res;

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

@@ -34,2 +34,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"gray-matter": "^2.0.0",
"lazy-cache": "^0.1.0",
"markdown-link": "^0.1.1",

@@ -36,0 +37,0 @@ "minimist": "^1.1.1",

@@ -211,2 +211,2 @@ # markdown-toc [![NPM version](https://badge.fury.io/js/markdown-toc.svg)](http://badge.fury.io/js/markdown-toc) [![Build Status](https://travis-ci.org/jonschlinkert/markdown-toc.svg)](https://travis-ci.org/jonschlinkert/markdown-toc)

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 21, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 25, 2015._
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