diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-11-14 22:09:30 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-11-14 22:09:30 +0100 |
commit | aa4894e94cbd5b80a2682b178eaf37e34d789713 (patch) | |
tree | 7c345aef800384d0b194c0f5847dd2465a850629 /lib/parse | |
parent | 8a0180ae6ba13b14890d46ba162297175367c7cc (diff) | |
download | gitbook-aa4894e94cbd5b80a2682b178eaf37e34d789713.zip gitbook-aa4894e94cbd5b80a2682b178eaf37e34d789713.tar.gz gitbook-aa4894e94cbd5b80a2682b178eaf37e34d789713.tar.bz2 |
Fix parsing of already lexed content
Diffstat (limited to 'lib/parse')
-rw-r--r-- | lib/parse/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse/page.js b/lib/parse/page.js index ca7441f..5fb2081 100644 --- a/lib/parse/page.js +++ b/lib/parse/page.js @@ -52,7 +52,7 @@ function parsePage(src, options) { // Lex if not already lexed var parsed = { - lexed: (_.isArray(src) ? page.content : lex(include(src, options.includer || function() { return undefined; }))) + lexed: (_.isArray(src) ? src : lex(include(src, options.includer || function() { return undefined; }))) }; parsed.sections = parsed.lexed.map(function(section) { // Transform given type |