summaryrefslogtreecommitdiffstats
path: root/lib/generate/json
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-11-03 17:40:38 +0100
committerSamy Pessé <samypesse@gmail.com>2014-11-03 17:40:38 +0100
commitdfd487692a948b9d16f1fbd75b6c4dd65d44c1cb (patch)
tree5f295d74c8b96b5fd9f595c8f22c143bcee62540 /lib/generate/json
parent195374eceeb5812df3c14ee5fdb88ed7f3310a2b (diff)
downloadgitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.zip
gitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.tar.gz
gitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.tar.bz2
Adapt new page.parse api for tests
Diffstat (limited to 'lib/generate/json')
-rw-r--r--lib/generate/json/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/generate/json/index.js b/lib/generate/json/index.js
index 6bc5211..a252ed3 100644
--- a/lib/generate/json/index.js
+++ b/lib/generate/json/index.js
@@ -29,8 +29,9 @@ Generator.prototype.convertFile = function(content, input) {
dir: path.dirname(input) || '/'
});
})
- .then(function(sections) {
- json.sections = sections;
+ .then(function(parsed) {
+ json.lexed = parsed.lexed;
+ json.sections = parsed.sections;
})
.then(function() {
return fs.writeFile(