Even the simplest rmarkdown document on rendering seems to create an html document that includes javascript. I am looking to create html that can be an email body. Is there any way to render markdowns without javascript in the resulting html?
There is nothing special about the following: this is just a general example:
--- title: "Sample" author: "JKGrain" date: "March 31, 2015" output: html_document --- This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http:
The resulting html source begins as follows:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="pandoc" /> <meta name="author" content="JKGrain" /> <meta name="date" content="2015-03-31" /> <title>Sample</title> <script src="data:application/x-javascript,%2F%2A%21%20jQuery%20v1%2E11.....
Obviously, I cut off the rest of the html, but hopefully this explains the problem.
html r r-markdown
jkgrain
source share