summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-markdown/lib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-markdown/lib')
-rw-r--r--packages/gitbook-markdown/lib/langs.js26
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;