pandoc_list_formats: List available supported formats

View source: R/pandoc-list.R

pandoc_list_formatsR Documentation

List available supported formats

Description

List available supported formats

Usage

pandoc_list_formats(type = c("input", "output"), version = "default")

Arguments

type

Either list input or output formats. It corresponds to call --list-input-formats and --list-output-formats respectively.

version

Version to use. Default will be the "default" version. Other possible value are

  • A version number e.g "2.14.1"

  • The nightly version called "nightly"

  • The latest installed version with "latest"

  • Pandoc binary shipped with RStudio IDE with "rstudio"

  • Pandoc binary found in PATH with "system"

Value

a data.frame (or a tibble if available) with 2 column:

  • type (input or output)

  • formats (name of the formats that can be used as input or output)

Examples


# which input formats are available
pandoc_list_formats()
# which output formats are available
pandoc_list_formats()


# target a specific version
pandoc_list_formats("input", version = "system")


pandoc documentation built on Aug. 24, 2023, 5:09 p.m.