diff options
Diffstat (limited to 'packages/gitbook-markdown/lib/langs.js')
-rw-r--r-- | packages/gitbook-markdown/lib/langs.js | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/packages/gitbook-markdown/lib/langs.js b/packages/gitbook-markdown/lib/langs.js index 4b2a9a9..86da75a 100644 --- a/packages/gitbook-markdown/lib/langs.js +++ b/packages/gitbook-markdown/lib/langs.js @@ -5,20 +5,18 @@ var parseEntries = require("./summary").entries; var parseLangs = function(content) { var entries = parseEntries(content); - return { - list: _.chain(entries) - .filter(function(entry) { - return Boolean(entry.path); - }) - .map(function(entry) { - return { - title: entry.title, - path: entry.path, - lang: entry.path.replace("/", "") - }; - }) - .value() - }; + return _.chain(entries) + .filter(function(entry) { + return Boolean(entry.path); + }) + .map(function(entry) { + return { + title: entry.title, + path: entry.path, + lang: entry.path.replace("/", "") + }; + }) + .value(); }; module.exports = parseLangs; |