summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-18 11:50:33 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-18 11:50:33 +0100
commit58a930e456860a025cb8565effe73fb3ae437882 (patch)
treec42b4c8de237e757f7916026ba0661224bf44e8d /lib/page
parent52206ce9d0353bc01b7238fe86aa19a92ec6effb (diff)
downloadgitbook-58a930e456860a025cb8565effe73fb3ae437882.zip
gitbook-58a930e456860a025cb8565effe73fb3ae437882.tar.gz
gitbook-58a930e456860a025cb8565effe73fb3ae437882.tar.bz2
Add "level" to TOCArticle
Diffstat (limited to 'lib/page')
-rw-r--r--lib/page/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index c92bdfa..51ed2aa 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -102,6 +102,7 @@ Page.prototype.getContext = function() {
title: article? article.title : null,
next: next? next.getContext() : null,
previous: prev? prev.getContext() : null,
+ level: article? article.level : null,
content: this.content
}
};