mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Improve section classification
This commit is contained in:
+2
-2
@@ -38,9 +38,9 @@ function parsePage(src) {
|
||||
section.type = sectionType(section);
|
||||
return section;
|
||||
})
|
||||
.map(function(section) {
|
||||
.map(function(section, idx) {
|
||||
// Transform given type
|
||||
if(section.type === 'exercise') {
|
||||
if(section.type === 'exercise' && (idx % 2) == 1) {
|
||||
return {
|
||||
type: section.type,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user