Skip to content

Commit e4492f5

Browse files
committed
Fix sections error
1 parent 70a5b87 commit e4492f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tocify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const tocifyPage = require('./tocify_page')
99
module.exports = function tocify (md, files, options) {
1010
var tokens = marked.lexer(md)
1111

12-
var re = { sections: {} }
12+
var re = { sections: [] }
1313
var crumbs = [scope]
1414
var current = re
1515
var docs = options && options.docs || 'docs'

0 commit comments

Comments
 (0)