Skip to content

Error when attempting to run with showdown 1.3.0 #1

@matatk

Description

@matatk

Thanks for this helpful extension :-).

I'm using it with showdown 1.3.0 via grunt-showdown (actually via ferllings/grunt-showdown because the original repo doesn't work with showdown 1.3.0). When I try to use showdown-toc I get the following error:

Error in 2 extension-> sub-extension 0: property "type" must be a string, but undefined given

This does not appear to be grunt-showdown-specific because if I comment out showdown-toc it works fine; also I am using other showdown extensions such as showdownjs/prettify-extension.

I am using a config like this in Gruntfile.js:

        showdown: {
            all: {
                options: {
                    customExtensions: ['showdown-prettify', 'showdown-toc']
                },
                files: [{
                    expand: true,
                    src: 'tmp/book/**/*.md',
                    ext: '.html'
                }]
            }
        },

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