markdown-it / markdown-it-footnote

Footnotes plugin for markdown-it markdown parser
https://markdown-it.github.io/
MIT License
212 stars 59 forks source link

Cannot read property 'type' of undefined #39

Closed jtppragg closed 4 years ago

jtppragg commented 4 years ago

I am trying to use markdown-it-footnote from marp-cli but I always get the following error message:

Cannot read property 'type' of undefined

Here there is my engine.js code:

const { Marp } = require('@marp-team/marp-core')

module.exports = (opts) => new Marp(opts)
        .use(require('markdown-it-container'), 'columns')
        .use(require('markdown-it-footnote'))
        .use(require('markdown-it-mark'))

I use several markdown-it plugins, but the error only appears when enabling markdown-it-footnote.

Thanks!

puzrin commented 4 years ago

I think you should address your question to marp authors. Markdown-it has online demo with this plugin, working as expected.