Skip to content

Commit aa4894e

Browse files
committed
Fix parsing of already lexed content
1 parent 8a0180a commit aa4894e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gitbook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ function parsePage(src, options) {
428428

429429
// Lex if not already lexed
430430
var parsed = {
431-
lexed: (_.isArray(src) ? page.content : lex(include(src, options.includer || function() { return undefined; })))
431+
lexed: (_.isArray(src) ? src : lex(include(src, options.includer || function() { return undefined; })))
432432
};
433433
parsed.sections = parsed.lexed.map(function(section) {
434434
// Transform given type

0 commit comments

Comments
 (0)