Comments (6)
R is available since yesterday ;-)
from hugo-theme-hello-friend.
Ha... doesn't seem to work. Perhaps the .Rmarkdown format is the cause?
Check here : www.davidsolito.com
from hugo-theme-hello-friend.
I don't see prism in my page header… I miss something?
from hugo-theme-hello-friend.
@dsolito have you tried wrapping R code like this:
```r [code] ```
?
from hugo-theme-hello-friend.
I work with rstudio and what I understand is that it depends on the type of markdown document I use.
I work in .rmd format and blogdown (package to build the site) generate the html.
But if you look at the html page, the code is inside
Details :
You cannot execute any R code in a plain Markdown document, whereas in an R Markdown document, you can embed R code chunks ({r}). However, you can still embed R code in plain Markdown using the syntax for fenced code blocks
r (note there are no curly braces {}). Such code blocks will not be executed and may be suitable for pure demonstration purposes. Below is an example of an R code chunk in R Markdown:
``` {r cool-plot, fig.cap='A cool plot.'}
plot(cars, pch = 20) # not really cool
```
And here is an example of an R code block in plain Markdown:
```r
1 + 1 # not executed
```
from hugo-theme-hello-friend.
@dsolito As far as I understand, R Studio is parsing markdown files differentely than Hugo, additionally Prism won’t catch {r}
syntax out of the box... Maybe you should fork Prism library and modify it for your case 🤔
If I’m wrong and this could be issue with my theme code, please create PR with necessary modifications 😉
from hugo-theme-hello-friend.
Related Issues (20)
- Change code snippet's theme when switch main theme
- Image Processing crashes on building a website
- [Question] Combining JS files in footer.html HOT 1
- Media queries are not working in iOS
- `Error building site: TOCSS: failed to transform "css/style.scss" (text/x-scss)` HOT 6
- Embedding TryHackMe badge HOT 1
- Can't Image in markdown syntax
- _index.md non centered text. HOT 1
- Add archive for tweets contenttype
- Question: Add Cover image to archive
- Add PowerShell Syntax Highlighting
- Animated back to top button with CSS HOT 1
- Add share buttons:
- Accessibility: Background and foreground colors do not have a sufficient contrast ratio.
- Accessibility: Links do not have a discernible name
- PWA: Progressive Web App Support
- Sticky navbar HOT 1
- Github Page support
- can't build my site due to a new error HOT 5
- [Help Wanted] How can I adjust the archive page so that it does not contain microblog entries? HOT 2
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 hugo-theme-hello-friend.