diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-18 11:50:33 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-18 11:50:33 +0100 |
commit | 58a930e456860a025cb8565effe73fb3ae437882 (patch) | |
tree | c42b4c8de237e757f7916026ba0661224bf44e8d /lib/page | |
parent | 52206ce9d0353bc01b7238fe86aa19a92ec6effb (diff) | |
download | gitbook-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.js | 1 |
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 } }; |