mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
Filter out empty sections when generating pages
This commit is contained in:
@@ -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_');
|
||||
|
||||
Reference in New Issue
Block a user