I'd like to create a few custom pandoc templates (all html output) and was curious where I could find additional information on the default template.
I'm familiar with the custom pandoc section in the bookdown site and have familiarized myself with this folder
rstudio/rmarkdown/inst/rmd/h in the
rmarkdown package, but could use some additional clarification.
I thought if I used the
rmd/h/default.html as the
template: I'd get the same result as the default render, but as per below, the results were slightly different.
Granted, the differences are minor, but it made me curious to learn more about the general structure, code, and thought process that goes into building a template.
- What code chunks are necessary to render R code (e.g. plots, tables, htmlwidgets)?
- What style rules does rmarkdown apply by default, and why?
- What software dependencies does it currently rely on? Could any be removed without impacting other processes?
- Would it be possible to use the R engine for anything that you can do in html/js/css? Are there any limitations?
- How could you approach creating a template based on a JS package (for example,
fullPage.jsor an html template (e.g.
- How does
runtime: shinywork and how could it be integrated into a new template?
I realize there are a lot of questions there, so I thought I'd try to approach it as more of a discussion board. I'd love to see any additional examples, attempts, or in dev thoughts around this topic.