knitr::opts_chunk$set(echo = TRUE)
wp_content <- WikipediR::page_content("en","wikipedia", page_name ="holodiscus discolor") str(wp_content)
Simply saving the content does not render images or links correctly:
writeChar(wp_content$parse$text[["*"]], con= "test.html")
CSS files can be found here: https://en.wikipedia.org/wiki/Wikipedia:Catalogue_of_CSS_classes
To convert html to pdf: http://wkhtmltopdf.org
This can take multiple html files and convert it to a single pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.