cunhapaulo / marpstyle

Repository for Marp Themes created with beauty and simplicity in mind.
MIT License
109 stars 15 forks source link

How to use with marp-cli ? #2

Closed jhconning closed 2 years ago

jhconning commented 2 years ago

Thanks for these beautiful styles. I cloned your repo and am able to see the styled slides perfectly with the vs code marp extension.

However, I have not been able to make these work from the command line. Perhaps this is a question best directed at the marp-cli repo (on the use of themes), but I thought I'd check to see if perhaps you might know since it's an important use case.

The relevant CSS files do not seem to be found. For example from the root of the marpstyle folder I try:

marp --server ./examples --theme-set ./style

This correctly gives me a choice to open any of the slide demos from the examples folder. But when I open any demo such as example-kant.md the rendered version in the slider presenter looks like this:

image

Do you have any experience with using these styles from the command line, or any suggestions? THanks!

update: I did post the same issue to the marp-cli repo, because thinking of this led to a few other questions: https://github.com/marp-team/marp-cli/issues/440

jhconning commented 2 years ago

Problem solved as explained at https://github.com/marp-team/marp-cli/issues/440, I needed to add the --html option at the end to make it work.

marp --server ./examples --theme-set ./style --html