gdoc_to_md: Convert Google Doc HTML output to markdown

Description Usage Arguments Value See Also

View source: R/gdoc_to_md.R

Description

Converts the HTML exported by from a Google document (retrieved by download_file(..., download_type='text/html') to a markdown file, pre-processing to deal with Google Doc's particular formatting.

Usage

1
gdoc_to_md(input_html, output_file = NULL, ...)

Arguments

input_html

an HTML file retrieved via download_file(..., download_type='text/html')

output_file

a filename for markdown output (optional)

...

options (as a character string) to be passed to pandoc via pandoc_convert

Value

If no output_file is specified, the markdown output is returned as a character. If output_file is specified, the markdown is written to this file and also returned invisibly.

See Also

download_file, pandoc_convert


noamross/driver documentation built on May 23, 2019, 9:30 p.m.