Skip to content

Commit

Permalink
markdown-nested-imenu-heading-index = nil
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Jul 12, 2021
1 parent 6672ee5 commit aad7bc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/lang/markdown/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ capture, the end position, and the output buffer.")
markdown-gfm-additional-languages '("sh")
markdown-make-gfm-checkboxes-buttons t

;; HACK Due to jrblevin/markdown-mode#578, invoking `imenu' throws a
;; 'wrong-type-argument consp nil' error if you use native-comp.
markdown-nested-imenu-heading-index (not (ignore-errors (native-comp-available-p)))

;; `+markdown-compile' offers support for many transpilers (see
;; `+markdown-compile-functions'), which it tries until one succeeds.
markdown-command #'+markdown-compile
Expand Down

0 comments on commit aad7bc5

Please sign in to comment.