Comments (11)
R syntax highlighting works for R in .md files but does not work in .Rmd
from loveit.
Following these steps will get you R syntax highlighting in .Rmd files there https://bookdown.org/yihui/blogdown/templates.html#how-to
from loveit.
@idrusfachr
The default R syntax highlighting looks like:
You could edit config/css/_custom.css
in your project folder to override the variables in assets/css/_variables.scss
in the LoveIt folder to customize the highlighting style.
from loveit.
😁 I'm considering improving the color scheme of the syntax highlighting.
from loveit.
R syntax highlighting works for R in .md files but does not work in .Rmd
I tried both .Rmd and .md but still doesn't work.
@idrusfachr
The default R syntax highlighting looks like:
You could edit
config/css/_custom.css
in your project folder to override the variables inassets/css/_variables.scss
in the LoveIt folder to customize the highlighting style.
That looks good to me. How can I activate this? Do i need to set parameter on my config file? Since using the default parameter still doesn't work in .md and .Rmd file. Like this:
from loveit.
@idrusfachr Is your original Markdown document like this?
from loveit.
Hi @dillonzq,
But both return this when rendered to html
from loveit.
@idrusfachr
Is the highlight configuration in your config file like this?
from loveit.
@dillonzq Finally fixed by set pygmentsUseClasses = false
in my config file
Thank you very much for your help.
from loveit.
I'm in the same situation as @idrusfachr above. I really like this Hugo theme but I normally use data and output in my posts so I use .Rmd instead of markdown.
The syntax highlight does not work. I have tried to customise the css with no success. Could you give a brief indication of how to do so.
@idrusfachr where about of the config file did you set pygmentsUseClasses = false
?
from loveit.
@idrusfachr where about of the config file did you set
pygmentsUseClasses = false
?
Hi @pablocal , I putted it here. Look at line 18 - 22.
from loveit.
Related Issues (20)
- 请问标题动画的代码在哪里? HOT 1
- 国内静态资源CDN HOT 3
- [FEATURE] disable theme switcher and order of params.social
- [BUG] _index.md worked fine with other theme/hugo version, not now HOT 2
- [BUG] Copy button in codeblock does not appear
- [BUG] Some problem...
- [FEATURE] Using local icons/svg in titile and menu ("pre") 如何使用本地SVG文件作为图标
- 我的博客内容部署后主页只显示两篇博客内容,其余的不显示
- [BUG] Deprecations
- [BUG] 网站主页配置头像未显示 HOT 1
- [BUG] 本地预览shortcodes有效,但是vercel部署过后shortcodes无法找到
- [BUG] Posts in the 'posts' directory but with type explicitly set to 'post' are not shown on the home page
- [FEATURE] Some feature
- [BUG] loveit 页面网页title渲染无效 HOT 2
- [FEATURE] 请问loveit主题怎么更换字体呢? HOT 2
- [BUG] 博客文章的中文子目录无法跳转 HOT 1
- [BUG] hugo giscus 评论区无法自动切换夜间模式
- [BUG] 為何我的Tag和Categories的英文字首會是大寫?
- How to automatically configure the update time of articles
- [BUG] code代码样式不太对 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loveit.