<!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior - imenu works ## Actual Behavior - `imenu--make-index-alist: Wrong type argument: consp, nil` <!--- If describing a bug, explain what happens instead of the expected behavior. If suggesting a change/improvement, explain the difference from current behavior. --> ## Steps to Reproduce 1. call `imenu` on a markdown-mode buffer with the following content: ```gfm # A ### B ## C ``` ## Backtrace <!-- To see the backtrace you might need to use, for example, M-x toggle-debug-on-error. --> ## Software Versions <!-- Use M-x markdown-show-version and M-x emacs-version to determine the Markdown Mode and Emacs version numbers. Examples: - Markdown Mode: From Git on 2017-10-17, 2.4-dev, or 2.3 - Emacs: 25.3.2 - OS: macOS High Sierra --> - Markdown Mode: 2.5-dev - Emacs: 28.0.50 - OS: macOS 10.14.6