Skip to content

Wrong type argument: consp, nil #51

Description

@rotdrop

Hello,

Please, provide the following information and remove the useless parts.
Thanks in advance.

bug -> yes, I suppose

M-x markdown-toc-bug-report

markdown-toc - Please:
- Describe your problem with clarity and conciceness (cf. https://www.gnu.org/software/emacs/manual/html_node/emacs/Understanding-Bug-Reporting.html)
- Explicit your installation choice (melpa, marmalade, el-get, tarball, git clone...).
- Report the following message trace inside your issue.

System information:
- system-type: gnu/linux
- locale-coding-system: utf-8-unix
- emacs-version: GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.16.0)
 of 2021-11-30
- markdown-mode path: /home/claus/.emacs.d/elpa/markdown-mode-20211022.55/markdown-mode.el
- markdown-toc version: 0.1.5
- markdown-toc path: /home/claus/.emacs.d/elpa/markdown-toc-20210905.738/markdown-toc.el

Expected behavior

What command did you use and what were you expecting?

markdown-toc-generate-toc, markdown-toc-refresh-toc, markdown-toc-generate-or-refresh-toc

Actual behavior

When running the command markdown-toc-generate-toc I get the error Wrong type argument: consp, nil with the following test-file:

PROJECT
========

# Heading #

## Sub-Heading ##

Blah blah.

# Another Heading #

Blah blah.

When I remove the second-level heading the toc is generated successfully.

PROJECT
========

# Heading #

Blah blah.

# Another Heading #

Blah blah.

Steps to reproduce the behavior

How can we try and reproduce?

See above, simple example mark-down code.

Thanks for sharing!

Cheers,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions