summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-markdown/lib/summary.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-markdown/lib/summary.js')
-rw-r--r--packages/gitbook-markdown/lib/summary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-markdown/lib/summary.js b/packages/gitbook-markdown/lib/summary.js
index fd412a2..50e971e 100644
--- a/packages/gitbook-markdown/lib/summary.js
+++ b/packages/gitbook-markdown/lib/summary.js
@@ -67,12 +67,12 @@ function listSplit(nodes, start_type, end_type) {
function filterList(nodes) {
return _.chain(nodes)
.toArray()
- .rest(function(el) {
+ .dropWhile(function(el) {
// Get everything after list_start
return el.type !== 'list_start';
})
.reverse()
- .rest(function(el) {
+ .dropWhile(function(el) {
// Get everything after list_end (remember we're reversed)
return el.type !== 'list_end';
})