We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bc2d19 + 4e1af28 commit 6bcf212Copy full SHA for 6bcf212
markdown-toc.el
@@ -150,7 +150,7 @@ Default to identity function (do nothing)."
150
(when menu-index
151
(let* ((fst (car menu-index))
152
(tail (cdr menu-index))
153
- (ttail (if (integerp tail) nil (cdr tail))))
+ (ttail (cdr-safe tail)))
154
(cons `(,level . ,fst)
155
(--mapcat
156
(markdown-toc--compute-toc-structure-from-level (+ 1 level) it)
0 commit comments