-
Notifications
You must be signed in to change notification settings - Fork 43
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
changing highlight.js theme results in plain white text #11
Comments
Note that, if I swap out the contents of zenburn.css in the prez file tree, the highlighting changes. So there's an issue picking up the highlight.js theme somewhere. |
More: it looks like zenburn.css is getting copied to build/ regardless of which Highlight style is chosen, which is probably the cause of the issue. |
Thanks for your input Josh. Here's my first conclusion about what could be happening here. If I go to an empty directory and run the following command : prez --init --theme=night --highlight-theme=molokai The generated But then, if I want to see my newly generated prez in my browser I run : prez --serve The issue here, before serving the slideshow it builds again. But this time, this second build step has the theme and highlight-theme options back to default. So the current way to get the expected result is to run : prez --serve --theme=night --highlight-theme=molokai Which means that you need to provide again and again the same options each time you want to serve the prez. Most of the time this line is written in a But I guess it can also be counter-intuitive. Maybe What's your opinion on this @naholyr ? |
It also breaks the other way. That is, if you didn't init with the highlight theme, then if you serve with the highlight theme it doesn't work. Which means that once you've init'd a Prez directory, you can't change the highlight theme. |
It's strange I thought the highlight theme was like other themes and that all available stylesheets were copied, and made available at serve-time. It's definitely a flaw, I'll have a look at what is the easiest solution to have a consistent behavior:
|
I'd prefer it to be at serve-time rather than init time if I had to make a choice. I'll often go through testing several different highlighting schemes after the slides are written. Both, of course, would be better. In my installation, when I tried to change the highlight theme at serve time, zenburn.css is still the file which is copied regardless of the theme chosen. |
That do the same when you use the |
If I use the --hightlight-theme switch, it results in plain white text on a black background regardless of which theme I choose. This is with the "Night" slide theme.
The text was updated successfully, but these errors were encountered: