Skip to content
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

Code block does not get rendered while starting a marp server with default theme #189

Closed
djoepramono opened this issue Dec 2, 2019 · 3 comments

Comments

@djoepramono
Copy link

djoepramono commented Dec 2, 2019

Hello, for some weird reason, my code block is no longer working in my browser. It was working a few weeks ago. Would you be able to give me some pointer?

My markdown presentation

---
marp: true
theme: default
---


# Normal

Welcome

---

# Code Block

` ` `js
// apologies for the triple backticks written as so, it's so that it can be previewed properly
console.log('hello');
` ` `

I run the following

npx @marp-team/marp-cli -s ./docs

and I got a blank code block like so

Screenshot from 2019-12-03 00-21-05

workarounds I have tried so far

  • Change theme to uncover and it works, however I can't use that theme because i need a sizeable realestate for my actual code block
  • run the cli with --html and add
<script defer src="https://cdn.jsdelivr.net/npm/@marp-team/marp-core/lib/browser.js"></script>

into the code block but it doesn't help

Thank you 🙏

@djoepramono djoepramono changed the title Code Block Code block does not get rendered with default theme while starting a marp server Dec 2, 2019
@djoepramono djoepramono changed the title Code block does not get rendered with default theme while starting a marp server Code block does not get rendered while starting a marp server with default theme Dec 2, 2019
@djoepramono
Copy link
Author

djoepramono commented Dec 2, 2019

update: running the marp cli conversion without serving it in a server seems to work

@→ npx marp docs/test.md 
[  INFO ] Converting 1 markdown...
[  INFO ] docs/test.md => docs/test.html

opening docs/test.html in a browser (I use Chrome) works fine

@yhatt
Copy link
Member

yhatt commented Dec 2, 2019

It has already reported in #168 and should have fixed in #172 (>= v0.15.0). In fact I could not reproduce the reported bug.

What the version of Marp CLI are you using? (--version)

@djoepramono
Copy link
Author

Ah apologies my marp is still locked in version 14.x.

Thanks, I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants