summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/parse/page.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/parse/page.js b/lib/parse/page.js
index 6481e65..515f4bb 100644
--- a/lib/parse/page.js
+++ b/lib/parse/page.js
@@ -55,6 +55,9 @@ function parsePage(src) {
section.type = sectionType(section, idx);
return section;
})
+ .filter(function(section) {
+ return !_.isEmpty(section);
+ })
.map(function(section) {
// Generate a uniqueId to identify this section in our code
var id = _.uniqueId('gitbook_');