Comparing version 0.9.1 to 0.10.0
@@ -139,2 +139,5 @@ 'use strict'; | ||
// 4 spaces required for proper indention on Bitbucket | ||
var indentation = mode === 'bitbucket.org' ? ' ' : ' '; | ||
var toc = | ||
@@ -146,3 +149,3 @@ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*' | ||
var indent = _(_.range(x.rank - lowestRank)) | ||
.reduce(function (acc, x) { return acc + ' '; }, ''); | ||
.reduce(function (acc, x) { return acc + indentation; }, ''); | ||
@@ -149,0 +152,0 @@ return indent + '- ' + x.anchor; |
@@ -5,3 +5,3 @@ { | ||
"description": "Generates TOC for markdown files of local git repo.", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -240,8 +240,8 @@ 'use strict'; | ||
, '- [My Module](#markdown-header-my-module)\n' | ||
, ' - [API](#markdown-header-api)\n' | ||
, ' - [Method One](#markdown-header-method-one)\n' | ||
, ' - [Method Two](#markdown-header-method-two)\n' | ||
, ' - [Main Usage](#markdown-header-main-usage)\n\n\n' | ||
, ' - [API](#markdown-header-api)\n' | ||
, ' - [Method One](#markdown-header-method-one)\n' | ||
, ' - [Method Two](#markdown-header-method-two)\n' | ||
, ' - [Main Usage](#markdown-header-main-usage)\n\n\n' | ||
].join('') | ||
, 'bitbucket.org' | ||
) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29344
574