-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'type' of undefined #300
Comments
I've tried to use same plugins with exactly same
|
Thank you for pointing me out the known compatibility problems between this plugin and marp. Anyway I would like to give it a chance. My error happens only when using footnotes in the markdown, for instance using the example code provided with the documentation: Here is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here's one with multiple blocks.
Subsequent paragraphs are indented to show that they
belong to the previous footnote. If I leave the plugin in Thanks! |
Just in case this is useful for anyone, I have achieved the desired behavior following @yhatt's suggestion here #226 (comment) using section .note {
position: absolute;
left: 70px;
right: 70px;
bottom: 50px;
border-top: 1px solid lightgray;
padding-top: 5px;
font-size: 0.5em;
text-align: left;
} |
Still cannot reproduce. I've tried following the procedure in below but I have no errors. npm i @marp-team/marp-cli @marp-team/marp-core markdown-it-container markdown-it-footnote markdown-it-mark
npx marp --engine ./engine.js slide.md engine.jsconst { 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')) slide.mdHere is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here's one with multiple blocks.
Subsequent paragraphs are indented to show that they
belong to the previous footnote.
|
Try with this ---
footer: the footer
---
Here is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here's one with multiple blocks.
Subsequent paragraphs are indented to show that they
belong to the previous footnote. In any case the footnotes appear in the last slide instead of the current slide as desired, so I will continue with this workaround instead: #300 (comment) Thank you! |
OK. This report shows the footnote plugin designed for Marp(it) should be responsible dealing with Marpit footer. It would be helpful information for plugin developer. Of course, should not expect Marp support for the plugin designed just for markdown-it. |
I am trying to use markdown-it-footnote from marp-cli but I always get the following error message:
Here there is my
engine.js
code:I use several markdown-it plugins, but the error only appears when enabling markdown-it-footnote. However this plugin has online demo working as expected, so I guess the error could be related to marp ...
Thanks!
The text was updated successfully, but these errors were encountered: