'juice' + 'markdown': Convert 'R Markdown' into 'HTML' with Inline Styles

A convenience tool to create 'HTML' with inline styles using 'juicyjuice' and 'markdown' packages. It is particularly useful when working on a content management system (CMS) whose code editor eliminates style and link tags. The main use case of the package is the learning management system, 'Moodle'. Additional helper functions for teaching purposes are provided. Learn more about 'juicedown' at < https://kenjisato.github.io/juicedown/>.


juicedown

R-CMD-check

The goal of juicedown is to offer useful tools to minimize routine formatting of page contents on such CMS/LMS as Moodle where code editor silently ignore style and link tags. To generate CSS-inlined HTML, the package uses juicyjuce package along with knitr and markdown packages.

Installation

Sometime soon (hopefully!), you can install it from CRAN like so:

install.packages("juicedown")

For the time being, you can install the development version of juicedown from GitHub with:

# install.packages("remotes")
remotes::install_github("kenjisato/juicedown")

Example

library(juicedown)

Main function is convert(). (Usually, you do not need dir argument)

convert(juicedown_example("markdown", "sample.md"), dir = ".", clip = FALSE)

# See the result
# browseURL("sample.html")

List sample file directories with

juicedown_example()
#> [1] "from-html"  "include"    "javascript" "markdown"   "yaml-meta"

List contents in the sample with

juicedown_example("javascript")
#> [1] "economics.xlsx" "sample.html"    "sample.Rmd"

How to see the source:

file.show(juicedown_example("javascript", "sample.Rmd"))

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("juicedown")

0.1.2 by Kenji Sato, a year ago


https://kenjisato.github.io/juicedown/, https://github.com/kenjisato/juicedown


Report a bug at https://github.com/kenjisato/juicedown/issues


Browse source code at https://github.com/cran/juicedown


Authors: Kenji Sato [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports clipr, dplyr, glue, juicyjuice, knitr, markdown, rlang, rvest, sass, stringr, xfun, xml2

Suggests readxl, testthat


See at CRAN