From d18da55a184ef514cb996e731830cd0749ccdfe9 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 31 Mar 2014 01:34:37 -0700 Subject: [PATCH] Improve section classification --- lib/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/page.js b/lib/page.js index 7288fb956..047f3e4de 100644 --- a/lib/page.js +++ b/lib/page.js @@ -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, };