Description Usage Arguments Value
View source: R/pandoc_conversion.R
This function uses pandoc and tempfiles to create a docx version of an HTML document. The HTML is prepended and appended with <!doctype html><html><body> and </body></html>. Then it is saved to a tempfile, and then pandoc converts it to a .docx file. Finally, the path to the .docx file is returned.
1 | html_2_pandoc(html, file_name, format, output_dir)
|
html |
an html body contents string. Do not include the <html><body> ... tags, the html parameter will automatically have those kinds of tags added within this function. |
output_dir |
an optional parameter for specifying an output folder |
the path to the docx file created from converting the html.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.