hugo: Convert to markdown for a Hugo blog post

Description Usage Arguments Value

Description

Format for converting from R Markdown to markdown for Hugo

Usage

1
2
3
hugo(toc = FALSE, toc_depth = 3, fig_width = 7, fig_height = 5,
  fig_retina = 2, dev = "png", includes = NULL,
  md_extensions = NULL, pandoc_args = NULL)

Arguments

toc

TRUE to include a table of contents in the output

toc_depth

Depth of headers to include in table of contents

fig_width

Default width (in inches) for figures

fig_height

Default height (in inches) for figures

fig_retina

Scaling to perform for retina displays. Defaults to NULL which performs no scaling. A setting of 2 will work for all widely used retina displays, but will also result in the output of <img> tags rather than markdown images due to the need to set the width of the image explicitly.

dev

Graphics device to use for figure output (defaults to png)

includes

Named list of additional content to include within the document (typically created using the includes function).

md_extensions

Markdown extensions to be added or removed from the default definition or R Markdown. See the rmarkdown_format for additional details.

pandoc_args

Additional command line options to pass to pandoc

Value

R Markdown output format to pass to render


hrbrmstr/markdowntemplates documentation built on May 17, 2019, 5:10 p.m.