Skip to content

Latest commit

 

History

History

setup-pandoc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

setup-pandoc

RStudio community

This action sets up pandoc: it downloads the specified version and adds it to the PATH.

Supported platforms:

  • Windows x86_64,
  • macOS x86_64 and arm64,
  • Linux x86_53 and aarch64.

Inputs:

Name Type Default Description
pandoc-version String 3.1.11 pandoc version to install. Can be latest or nightly. See notes about old and nigthly versions below.
token String GitHub token. Needed when pandoc-version is nigthly.

The oldest supported pandoc version is pandoc 2.0.2, except on arm64 Linux, where it is pandoc 2.12.

Nightly builds are installed from https://github.com/jgm/pandoc/actions/workflows/nightly.yml.

For nightly builds you also need to specify token. pandoc does not currently have nightly builds for arm64 machines, so using nigthly will error on these.

Usage

steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
  with:
    pandoc-version: '3.1.11' # The pandoc version to download (if necessary) and use.
- run: echo "# Test" | pandoc -t html

License

The scripts and documentation in this project are released under the MIT License.

Contributions

Contributions are welcome! See Contributor's Guide