markdown-toc
Advanced tools
Comparing version 0.11.4 to 0.11.5
@@ -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 @@ |
'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._ |
16024
9
294
+ Addedlazy-cache@^0.1.0
+ Addedansi-yellow@0.1.1(transitive)
+ Addedlazy-cache@0.1.0(transitive)