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
R Code chunks mis-align when a left-handed arrow is present; not responding to tidy option #345
Comments
I've seen this issue before, for the Tranquilpeak theme in particular. See #321 The problem is that R code chunks are mistakenly treated as xml code chunks by the default highlightjs from the theme. The final solution we came up is to re-configure the highlight js as in here |
Thank you very much for your quick reply! @tcgriffith I followed the solution you referenced and finally got it working! Here is what I did:
|
You are doing it alright. if you edited the theme files directly, they may be lost if you need to update the theme. A better way is to override the theme files. In your case:
Source: https://gohugo.io/templates/base/#override-the-base-template |
Dear Yihui,
I recently started playing with blogdown and have been having trouble with R code chunks that contain a left-handed arrow "<-". I tested the following two chunks in a blog post:
You can see the result here (link)
Turning on and off the tidy option did not seem to make a difference, either.
Did I miss something here or is this a bug with blogdown?
Thank you very much!
Warmly, Chunyun
The text was updated successfully, but these errors were encountered: