diff --git a/lib/transform.js b/lib/transform.js index 47f70f5..d8eeed2 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -137,7 +137,7 @@ exports = module.exports = function transform(content, mode, maxHeaderNo) { if (linkedHeaders.length === 0) return { transformed: false }; // 4 spaces required for proper indention on Bitbucket - var indentionAmount = (mode === 'bitbucket.org' ? ' ' : ' '); + var indentation = mode === 'bitbucket.org' ? ' ' : ' '; var toc = '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*' @@ -145,7 +145,7 @@ exports = module.exports = function transform(content, mode, maxHeaderNo) { + linkedHeaders .map(function (x) { var indent = _(_.range(x.rank - lowestRank)) - .reduce(function (acc, x) { return acc + indentionAmount; }, ''); + .reduce(function (acc, x) { return acc + indentation; }, ''); return indent + '- ' + x.anchor; })