-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Inline code is not highlighting when using "darkly" theme #2390
Comments
Unfortunately, this is not supported by Pandoc which is in charge of the highlighting: jgm/pandoc#7560 and jgm/skylighting#122 You can do that or now by applying a custom CSS style derived from you dark theme. (using We could try to bring better support for HTML at least in rmarkdown directly by getting the background information of the Pandoc style used and add a CSS style based on it. |
@cderv |
This is a great exercise to learn about CSS ! Use the inspector in your browser to find the inline code element and its applied style.
You would need to
I let you with the exercice and come back later this week if you can't manage to made it work. Please share back what you tried in the meantime (Also doing it because you did not share a reproducible example of what you are doing and I don't have the time right now to create one, trying to guess your specific usage - if you share back more info, it will be easier to help) |
@cderv Below is my issue. Please look into this if it's not too much work. Thanks. |
yes I agree. And this is the case if you stay within supported feature and default behavior. If you want to customize or add specific support, you will need to add a bit of CSS / JS for HTML output, and LaTeX for PDF. Honestly, this is really useful skills if you produce HTML document to understand and now how to tweak a CSS theme. Example with ---
output:
html_document:
highlight: zenburn
---
```{css, echo = FALSE}
p > code {
background-color: rgb(48, 48, 48);
color: rgb(204, 204, 204);
}
```
Hi!
Below is a inline code which is not highlighting with "darkly" theme.
`blah blah`
See, that blah blah supposed to be higlighted, but it isn't.
It works fine in all other themes but issue is only with "darkly"
```{r}
1 + 1
```
hope it helps |
Thanks, sir 👍 worked. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I hope the issue is clear enough.
Please suggest a solution. Thanks.
The text was updated successfully, but these errors were encountered: