Skip to content

Commit

Permalink
Merge pull request #3 from xiliuya/fix-53
Browse files Browse the repository at this point in the history
- fix issuse ardumont#53
  • Loading branch information
pierre-rouleau authored Nov 14, 2024
2 parents e56e711 + b6e0d34 commit bd1a18f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion markdown-toc.el
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ Default to identity function (do nothing)."

(defun markdown-toc--compute-toc-structure (imenu-index)
"Given a IMENU-INDEX, compute the TOC structure."
(--mapcat (markdown-toc--compute-toc-structure-from-level 0 it) imenu-index))
(--mapcat (markdown-toc--compute-toc-structure-from-level
(if (eq markdown-toc-user-toc-structure-manipulation-fn 'cdr)
-1
0)
it)
imenu-index))

(defun markdown-toc--symbol (sym n)
"Compute the repetition of a symbol SYM N times as a string."
Expand Down

0 comments on commit bd1a18f

Please sign in to comment.