-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
--engine ./engine.js
doesn't render code blocks well
#168
Comments
I upload the generated html file as |
--engine ./engine.js
doen't render the code block--engine ./engine.js
doesn't render the code block well
--engine ./engine.js
doesn't render the code block well--engine ./engine.js
doesn't render code blocks well
Thanks for feedback. Perhaps it's not triggered Marp Core package has defined path to JS for bundling with HTML, but it's cannot in functional engine. We should consider a way to add browser script by custom engine. As a workaround, load Marp Core's browser script manually in Markdown. (require # Your contents
...
<script defer src="https://cdn.jsdelivr.net/npm/@marp-team/marp-core/lib/browser.js"></script> |
Thank you for your quick response. I confirm the workaround solves this issue! |
I have the following files.
engine.js
Note: I've also tested
module.exports = opts => new Marp();
, but there seems no difference.sample.md
package.json
When I use
--engine @marp-team/marp-core
, it works well.Interestingly, when I use
--engine ./engine.js
, it doesn't render the code block well as follows.The text was updated successfully, but these errors were encountered: